-
- All Implemented Interfaces:
-
com.hexagonkt.serialization.SerializationFormat
public class JacksonTextFormat implements SerializationFormat
-
-
Field Summary
Fields Modifier and Type Field Description private final ObjectMappermapperprivate final StringcontentTypeprivate final BooleanisBinaryprivate final LinkedHashSet<String>extensions
-
Constructor Summary
Constructors Constructor Description JacksonTextFormat(LinkedHashSet<String> extensions, Function0<JsonFactory> factoryGenerator)
-
Method Summary
Modifier and Type Method Description final ObjectMappergetMapper()StringgetContentType()BooleangetIsBinary()final LinkedHashSet<String>getExtensions()Unitserialize(Object obj, OutputStream output)Stringserialize(Object obj)<T extends Any> Tparse(InputStream input, KClass<T> type)<T extends Any> List<T>parseObjects(InputStream input, KClass<T> type)-
-
Constructor Detail
-
JacksonTextFormat
JacksonTextFormat(LinkedHashSet<String> extensions, Function0<JsonFactory> factoryGenerator)
-
-
Method Detail
-
getMapper
final ObjectMapper getMapper()
-
getContentType
String getContentType()
-
getIsBinary
Boolean getIsBinary()
-
getExtensions
final LinkedHashSet<String> getExtensions()
-
serialize
Unit serialize(Object obj, OutputStream output)
-
parseObjects
<T extends Any> List<T> parseObjects(InputStream input, KClass<T> type)
-
-
-
-