Package org.dominokit.jacksonapt
Class AbstractObjectReader<T>
java.lang.Object
org.dominokit.jacksonapt.AbstractObjectMapper<T>
org.dominokit.jacksonapt.AbstractObjectReader<T>
- All Implemented Interfaces:
ObjectMapper<T>,ObjectReader<T>,ObjectWriter<T>
public abstract class AbstractObjectReader<T> extends AbstractObjectMapper<T> implements ObjectReader<T>
Base implementation of
ObjectReader. Extends AbstractObjectMapper to avoid code duplication, trying to write with this
reader will result in an UnsupportedOperationException.- Version:
- $Id: $
- Author:
- Nicolas Morel
-
Constructor Summary
Constructors Constructor Description AbstractObjectReader(java.lang.String rootName)Constructor for AbstractObjectReader. -
Method Summary
Modifier and Type Method Description protected JsonSerializer<?>newSerializer()Instantiates a new serializerMethods inherited from class org.dominokit.jacksonapt.AbstractObjectMapper
getDeserializer, getSerializer, newDeserializer, read, read, readArray, readArray, write, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.dominokit.jacksonapt.ObjectReader
getDeserializer, read, read, readArray, readArray
-
Constructor Details
-
AbstractObjectReader
public AbstractObjectReader(java.lang.String rootName)Constructor for AbstractObjectReader.
- Parameters:
rootName- aStringobject.
-
-
Method Details
-
newSerializer
Instantiates a new serializer- Specified by:
newSerializerin classAbstractObjectMapper<T>- Returns:
- a new serializer
-