summaryrefslogtreecommitdiff
path: root/eaaf_core/src/main
diff options
context:
space:
mode:
authorThomas <>2022-08-18 08:55:25 +0200
committerThomas <>2022-08-18 08:55:25 +0200
commit5efc2e4f31e3456e68ac19fe21352ac501302bf4 (patch)
tree66c1ac717d3763647cfb7623d68109be56b06edb /eaaf_core/src/main
parentd0309843cf6775c215bb132283116b6442b082d6 (diff)
downloadEAAF-Components-5efc2e4f31e3456e68ac19fe21352ac501302bf4.tar.gz
EAAF-Components-5efc2e4f31e3456e68ac19fe21352ac501302bf4.tar.bz2
EAAF-Components-5efc2e4f31e3456e68ac19fe21352ac501302bf4.zip
refact(sl20): switch to one single JSONMapper instsance
Diffstat (limited to 'eaaf_core/src/main')
-rw-r--r--eaaf_core/src/main/java/at/gv/egiz/eaaf/core/api/utils/IJsonMapper.java54
1 files changed, 0 insertions, 54 deletions
diff --git a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/api/utils/IJsonMapper.java b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/api/utils/IJsonMapper.java
deleted file mode 100644
index 08c48435..00000000
--- a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/api/utils/IJsonMapper.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package at.gv.egiz.eaaf.core.api.utils;
-
-import java.io.IOException;
-import java.io.InputStream;
-
-import at.gv.egiz.eaaf.core.exceptions.EaafJsonMapperException;
-
-public interface IJsonMapper {
-
- /**
- * Serialize an object to a JSON string.
- *
- * @param value the object to serialize
- * @return a JSON string
- * @throws JsonProcessingException thrown when an error occurs during
- * serialization
- */
- String serialize(Object value) throws EaafJsonMapperException;
-
- /**
- * Deserialize a JSON string.
- *
- * @param value the JSON string to deserialize
- * @param clazz optional parameter that determines the type of the returned
- * object. If not set, an {@link Object} is returned.
- * @param <T> Response class type
- * @return the deserialized JSON string as an object of type {@code clazz} or
- * {@link Object}
- * @throws JsonParseException if the JSON string contains invalid content.
- * @throws JsonMappingException if the input JSON structure does not match
- * structure expected for result type
- * @throws IOException if an I/O problem occurs (e.g. unexpected
- * end-of-input)
- */
- <T> Object deserialize(String value, Class<T> clazz) throws EaafJsonMapperException;
-
- /**
- * Deserialize a JSON string.
- *
- * @param is the JSON to deserialize as {@link InputStream}
- * @param clazz optional parameter that determines the type of the returned
- * object. If not set, an {@link Object} is returned.
- * @param <T> Response class type
- * @return the deserialized JSON string as an object of type {@code clazz} or
- * {@link Object}
- * @throws JsonParseException if the JSON string contains invalid content.
- * @throws JsonMappingException if the input JSON structure does not match
- * structure expected for result type
- * @throws IOException if an I/O problem occurs (e.g. unexpected
- * end-of-input)
- */
- <T> Object deserialize(InputStream is, Class<T> clazz) throws EaafJsonMapperException;
-
-}