Package org.dominokit.jacksonapt
Class AbstractObjectWriter<T>
java.lang.Object
org.dominokit.jacksonapt.AbstractObjectMapper<T>
org.dominokit.jacksonapt.AbstractObjectWriter<T>
- All Implemented Interfaces:
ObjectMapper<T>,ObjectReader<T>,ObjectWriter<T>
public abstract class AbstractObjectWriter<T> extends AbstractObjectMapper<T> implements ObjectWriter<T>
Base implementation of
ObjectWriter. Extends AbstractObjectMapper to avoid code duplication, trying to read with this
writer will result in an UnsupportedOperationException.- Version:
- $Id: $
- Author:
- Nicolas Morel
-
Constructor Summary
Constructors Constructor Description AbstractObjectWriter(java.lang.String rootName)Constructor for AbstractObjectWriter. -
Method Summary
Modifier and Type Method Description protected JsonDeserializer<T>newDeserializer()Instantiates a new deserializerMethods inherited from class org.dominokit.jacksonapt.AbstractObjectMapper
getDeserializer, getSerializer, newSerializer, 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.ObjectWriter
getSerializer, write, write
-
Constructor Details
-
AbstractObjectWriter
public AbstractObjectWriter(java.lang.String rootName)Constructor for AbstractObjectWriter.
- Parameters:
rootName- aStringobject.
-
-
Method Details
-
newDeserializer
Instantiates a new deserializer- Specified by:
newDeserializerin classAbstractObjectMapper<T>- Returns:
- a new deserializer
-