public class IonObjectMapper
extends com.fasterxml.jackson.databind.ObjectMapper
ObjectMapper that will set underlying
JsonFactory
to be an instance of IonFactory.| Modifier and Type | Class and Description |
|---|---|
static class |
IonObjectMapper.Builder
Base implementation for "Vanilla"
ObjectMapper, used with
Ion backend. |
_coercionConfigs, _configOverrides, _deserializationConfig, _deserializationContext, _injectableValues, _jsonFactory, _mixIns, _registeredModuleTypes, _rootDeserializers, _serializationConfig, _serializerFactory, _serializerProvider, _subtypeResolver, _typeFactory, DEFAULT_ANNOTATION_INTROSPECTOR, DEFAULT_BASE| Modifier | Constructor and Description |
|---|---|
|
IonObjectMapper()
Constructor that will construct the mapper with a standard
IonFactory
as codec, using textual writers by default. |
|
IonObjectMapper(IonFactory f)
Constructor that will construct the mapper with a given
IonFactory. |
protected |
IonObjectMapper(IonObjectMapper src) |
| Modifier and Type | Method and Description |
|---|---|
static IonObjectMapper.Builder |
builder()
A builder for a mapper that will use textual writers by default.
|
static IonObjectMapper.Builder |
builder(IonFactory streamFactory) |
static IonObjectMapper.Builder |
builder(com.amazon.ion.IonSystem ionSystem)
A builder for a mapper that will use textual writers by default and the
provided
IonSystem. |
static IonObjectMapper.Builder |
builderForBinaryWriters()
A builder for a mapper that will use binary writers by default.
|
static IonObjectMapper.Builder |
builderForBinaryWriters(com.amazon.ion.IonSystem ionSystem)
A builder for a mapper that will use binary writers by default and the
provided
IonSystem |
static IonObjectMapper.Builder |
builderForTextualWriters()
A builder for a mapper that will use textual writers by default.
|
static IonObjectMapper.Builder |
builderForTextualWriters(com.amazon.ion.IonSystem ionSystem)
A builder for a mapper that will use textual writers by default and the
provided
IonSystem. |
IonObjectMapper |
configure(IonGenerator.Feature f,
boolean state) |
IonObjectMapper |
configure(IonParser.Feature f,
boolean state) |
com.fasterxml.jackson.databind.ObjectMapper |
copy() |
IonGenerator |
createGenerator(com.amazon.ion.IonWriter writer) |
IonParser |
createParser(com.amazon.ion.IonReader reader) |
IonParser |
createParser(com.amazon.ion.IonValue value) |
IonObjectMapper |
disable(IonGenerator.Feature f) |
IonObjectMapper |
disable(IonParser.Feature f) |
IonObjectMapper |
enable(IonGenerator.Feature f) |
IonObjectMapper |
enable(IonParser.Feature f) |
IonFactory |
getFactory() |
<T> T |
readValue(com.amazon.ion.IonReader r,
Class<T> valueType)
Deserialize an Ion value read from the supplied IonReader into a Java
type.
|
<T> T |
readValue(com.amazon.ion.IonReader r,
com.fasterxml.jackson.databind.JavaType valueType)
Deserialize an Ion value read from the supplied IonReader into a Java
type.
|
<T> T |
readValue(com.amazon.ion.IonReader r,
com.fasterxml.jackson.core.type.TypeReference valueTypeRef)
Deserialize an Ion value read from the supplied IonReader into a Java
type.
|
<T> T |
readValue(com.amazon.ion.IonValue value,
Class<T> valueType)
Convenience method for converting Ion value into given value type.
|
<T> T |
readValue(com.amazon.ion.IonValue value,
com.fasterxml.jackson.databind.JavaType valueType)
Convenience method for converting Ion value into given value type.
|
<T> T |
readValue(com.amazon.ion.IonValue value,
com.fasterxml.jackson.core.type.TypeReference valueTypeRef)
Convenience method for converting Ion value into given value type.
|
void |
setCreateBinaryWriters(boolean bin) |
com.fasterxml.jackson.core.Version |
version() |
void |
writeValue(com.amazon.ion.IonWriter w,
Object value)
Method that can be used to serialize any Java value as
Ion output, using IonWriter provided.
|
com.amazon.ion.IonValue |
writeValueAsIonValue(Object value)
Method that can be used to map any Java value to an IonValue.
|
_assertNotNull, _checkInvalidCopy, _configAndWriteValue, _constructDefaultTypeResolverBuilder, _convert, _findRootDeserializer, _initForReading, _newReader, _newReader, _newWriter, _newWriter, _newWriter, _readMapAndClose, _readTreeAndClose, _readValue, _serializerProvider, _verifyNoTrailingTokens, _verifySchemaType, _writeValueAndClose, acceptJsonFormatVisitor, acceptJsonFormatVisitor, activateDefaultTyping, activateDefaultTyping, activateDefaultTyping, activateDefaultTypingAsProperty, addHandler, addMixIn, addMixInAnnotations, canDeserialize, canDeserialize, canSerialize, canSerialize, clearProblemHandlers, coercionConfigDefaults, coercionConfigFor, coercionConfigFor, configOverride, configure, configure, configure, configure, configure, constructType, constructType, convertValue, convertValue, convertValue, createArrayNode, createDeserializationContext, createGenerator, createGenerator, createGenerator, createGenerator, createGenerator, createNonBlockingByteArrayParser, createObjectNode, createParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, deactivateDefaultTyping, defaultClassIntrospector, disable, disable, disable, disable, disable, disable, disable, disableDefaultTyping, enable, enable, enable, enable, enable, enable, enable, enableDefaultTyping, enableDefaultTyping, enableDefaultTyping, enableDefaultTypingAsProperty, findAndRegisterModules, findMixInClassFor, findModules, findModules, generateJsonSchema, getDateFormat, getDeserializationConfig, getDeserializationContext, getInjectableValues, getNodeFactory, getPolymorphicTypeValidator, getPropertyNamingStrategy, getRegisteredModuleIds, getSerializationConfig, getSerializerFactory, getSerializerProvider, getSerializerProviderInstance, getSubtypeResolver, getTypeFactory, getVisibilityChecker, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, missingNode, mixInCount, nullNode, reader, reader, reader, reader, reader, reader, reader, reader, reader, reader, reader, readerFor, readerFor, readerFor, readerForArrayOf, readerForListOf, readerForMapOf, readerForUpdating, readerWithView, readTree, readTree, readTree, readTree, readTree, readTree, readTree, readTree, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValues, readValues, readValues, readValues, registerModule, registerModules, registerModules, registerSubtypes, registerSubtypes, registerSubtypes, setAccessorNaming, setAnnotationIntrospector, setAnnotationIntrospectors, setBase64Variant, setConfig, setConfig, setConstructorDetector, setDateFormat, setDefaultAttributes, setDefaultLeniency, setDefaultMergeable, setDefaultPrettyPrinter, setDefaultPropertyInclusion, setDefaultPropertyInclusion, setDefaultSetterInfo, setDefaultTyping, setDefaultVisibility, setFilterProvider, setFilters, setHandlerInstantiator, setInjectableValues, setLocale, setMixInAnnotations, setMixInResolver, setMixIns, setNodeFactory, setPolymorphicTypeValidator, setPropertyInclusion, setPropertyNamingStrategy, setSerializationInclusion, setSerializerFactory, setSerializerProvider, setSubtypeResolver, setTimeZone, setTypeFactory, setVisibility, setVisibility, setVisibilityChecker, tokenStreamFactory, treeAsTokens, treeToValue, treeToValue, updateValue, valueToTree, writer, writer, writer, writer, writer, writer, writer, writer, writer, writer, writerFor, writerFor, writerFor, writerWithDefaultPrettyPrinter, writerWithType, writerWithType, writerWithType, writerWithView, writeTree, writeTree, writeValue, writeValue, writeValue, writeValue, writeValue, writeValueAsBytes, writeValueAsStringpublic IonObjectMapper()
IonFactory
as codec, using textual writers by default.public IonObjectMapper(IonFactory f)
IonFactory.protected IonObjectMapper(IonObjectMapper src)
public static IonObjectMapper.Builder builder()
builderForTextualWriters().public static IonObjectMapper.Builder builder(com.amazon.ion.IonSystem ionSystem)
IonSystem. Same as builderForTextualWriters(IonSystem).public static IonObjectMapper.Builder builderForBinaryWriters()
public static IonObjectMapper.Builder builderForBinaryWriters(com.amazon.ion.IonSystem ionSystem)
IonSystempublic static IonObjectMapper.Builder builderForTextualWriters()
public static IonObjectMapper.Builder builderForTextualWriters(com.amazon.ion.IonSystem ionSystem)
IonSystem.public static IonObjectMapper.Builder builder(IonFactory streamFactory)
public com.fasterxml.jackson.databind.ObjectMapper copy()
copy in class com.fasterxml.jackson.databind.ObjectMapperpublic void setCreateBinaryWriters(boolean bin)
public com.fasterxml.jackson.core.Version version()
version in interface com.fasterxml.jackson.core.Versionedversion in class com.fasterxml.jackson.databind.ObjectMapperpublic IonObjectMapper configure(IonGenerator.Feature f, boolean state)
public IonObjectMapper configure(IonParser.Feature f, boolean state)
public IonObjectMapper enable(IonGenerator.Feature f)
public IonObjectMapper enable(IonParser.Feature f)
public IonObjectMapper disable(IonGenerator.Feature f)
public IonObjectMapper disable(IonParser.Feature f)
public IonFactory getFactory()
getFactory in class com.fasterxml.jackson.databind.ObjectMapperpublic IonParser createParser(com.amazon.ion.IonReader reader) throws IOException
IOExceptionpublic IonParser createParser(com.amazon.ion.IonValue value) throws IOException
IOExceptionpublic IonGenerator createGenerator(com.amazon.ion.IonWriter writer) throws IOException
IOExceptionpublic <T> T readValue(com.amazon.ion.IonReader r,
Class<T> valueType)
throws IOException
Note: method does not close the underlying reader
IOExceptionpublic <T> T readValue(com.amazon.ion.IonReader r,
com.fasterxml.jackson.core.type.TypeReference valueTypeRef)
throws IOException
Note: method does not close the underlying reader
IOExceptionpublic <T> T readValue(com.amazon.ion.IonReader r,
com.fasterxml.jackson.databind.JavaType valueType)
throws IOException
Note: method does not close the underlying reader
IOExceptionpublic <T> T readValue(com.amazon.ion.IonValue value,
Class<T> valueType)
throws IOException
IOExceptionpublic <T> T readValue(com.amazon.ion.IonValue value,
com.fasterxml.jackson.core.type.TypeReference valueTypeRef)
throws IOException
IOExceptionpublic <T> T readValue(com.amazon.ion.IonValue value,
com.fasterxml.jackson.databind.JavaType valueType)
throws IOException
IOExceptionpublic void writeValue(com.amazon.ion.IonWriter w,
Object value)
throws IOException
Note: method does not close the underlying writer explicitly
IOExceptionpublic com.amazon.ion.IonValue writeValueAsIonValue(Object value) throws IOException
IOExceptionCopyright © 2021 FasterXML. All rights reserved.