Package com.fasterxml.jackson.jr.ob.api
Class ReaderWriterProvider
- java.lang.Object
-
- com.fasterxml.jackson.jr.ob.api.ReaderWriterProvider
-
- Direct Known Subclasses:
ReaderWriterProvider.Pair
public abstract class ReaderWriterProvider extends java.lang.Object
API to implement to provide customValueReader
s andValueWriter
s.- Since:
- 2.10
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReaderWriterProvider.Pair
Implementation that allows chaining of two providers, one (first) with higher precedence than the other (second).
-
Constructor Summary
Constructors Constructor Description ReaderWriterProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueReader
findCollectionReader(JSONReader readContext, java.lang.Class<?> type, ResolvedType valueType, ValueReader readerForValues)
ValueReader
findMapReader(JSONReader readContext, java.lang.Class<?> type, ResolvedType valueType, ValueReader readerForValues)
ValueReader
findValueReader(JSONReader readContext, java.lang.Class<?> type)
Method called to find custom reader for given type that is NOT one of special container types (Collection
,Map
): typically value is a scalar, Bean or Enum.ValueWriter
findValueWriter(JSONWriter writeContext, java.lang.Class<?> type)
-
-
-
Method Detail
-
findValueReader
public ValueReader findValueReader(JSONReader readContext, java.lang.Class<?> type)
Method called to find custom reader for given type that is NOT one of special container types (Collection
,Map
): typically value is a scalar, Bean or Enum.- Parameters:
readContext
- context object that may be needed for resolving dependant readerstype
- Raw type of bean to find reader for
-
findCollectionReader
public ValueReader findCollectionReader(JSONReader readContext, java.lang.Class<?> type, ResolvedType valueType, ValueReader readerForValues)
-
findMapReader
public ValueReader findMapReader(JSONReader readContext, java.lang.Class<?> type, ResolvedType valueType, ValueReader readerForValues)
-
findValueWriter
public ValueWriter findValueWriter(JSONWriter writeContext, java.lang.Class<?> type)
-
-