public class ProtobufFactory
extends com.fasterxml.jackson.core.JsonFactory
_byteSymbolCanonicalizer, _characterEscapes, _factoryFeatures, _generatorFeatures, _inputDecorator, _maximumNonEscapedChar, _objectCodec, _outputDecorator, _parserFeatures, _quoteChar, _rootCharSymbols, _rootValueSeparator, DEFAULT_FACTORY_FEATURE_FLAGS, DEFAULT_GENERATOR_FEATURE_FLAGS, DEFAULT_PARSER_FEATURE_FLAGS, DEFAULT_QUOTE_CHAR, DEFAULT_ROOT_VALUE_SEPARATOR, FORMAT_NAME_JSON| Modifier | Constructor and Description |
|---|---|
|
ProtobufFactory() |
|
ProtobufFactory(com.fasterxml.jackson.core.ObjectCodec codec) |
protected |
ProtobufFactory(ProtobufFactoryBuilder b)
Constructors used by
ProtobufFactoryBuilder for instantiation. |
protected |
ProtobufFactory(ProtobufFactory src,
com.fasterxml.jackson.core.ObjectCodec oc) |
| Modifier and Type | Method and Description |
|---|---|
protected com.fasterxml.jackson.core.io.IOContext |
_createContext(com.fasterxml.jackson.core.io.ContentReference contentRef,
boolean resourceManaged) |
protected ProtobufGenerator |
_createGenerator(Writer out,
com.fasterxml.jackson.core.io.IOContext ctxt) |
protected ProtobufParser |
_createParser(byte[] data,
int offset,
int len,
com.fasterxml.jackson.core.io.IOContext ctxt) |
protected com.fasterxml.jackson.core.JsonParser |
_createParser(char[] data,
int offset,
int len,
com.fasterxml.jackson.core.io.IOContext ctxt,
boolean recyclable) |
protected ProtobufParser |
_createParser(InputStream in,
com.fasterxml.jackson.core.io.IOContext ctxt) |
protected com.fasterxml.jackson.core.JsonParser |
_createParser(Reader r,
com.fasterxml.jackson.core.io.IOContext ctxt) |
protected ProtobufGenerator |
_createUTF8Generator(OutputStream out,
com.fasterxml.jackson.core.io.IOContext ctxt) |
protected Writer |
_createWriter(OutputStream out,
com.fasterxml.jackson.core.JsonEncoding enc,
com.fasterxml.jackson.core.io.IOContext ctxt) |
protected <T> T |
_nonByteSource() |
protected <T> T |
_nonByteTarget() |
static ProtobufFactoryBuilder |
builder()
Main factory method to use for constructing
ProtobufFactory instances with
different configuration. |
boolean |
canHandleBinaryNatively() |
boolean |
canUseCharArrays() |
ProtobufFactory |
copy() |
ProtobufGenerator |
createGenerator(OutputStream out)
Method for constructing
JsonGenerator for generating
protobuf-encoded output. |
ProtobufGenerator |
createGenerator(OutputStream out,
com.fasterxml.jackson.core.JsonEncoding enc) |
ProtobufParser |
createParser(byte[] data) |
ProtobufParser |
createParser(byte[] data,
int offset,
int len) |
ProtobufParser |
createParser(File f) |
ProtobufParser |
createParser(InputStream in) |
ProtobufParser |
createParser(URL url) |
String |
getFormatName() |
com.fasterxml.jackson.core.format.MatchStrength |
hasFormat(com.fasterxml.jackson.core.format.InputAccessor acc)
Sub-classes need to override this method
|
protected Object |
readResolve()
Method that we need to override to actually make restoration go
through constructors etc.
|
ProtobufFactoryBuilder |
rebuild() |
boolean |
requiresPropertyOrdering() |
com.fasterxml.jackson.core.Version |
version() |
_checkInvalidCopy, _createContentReference, _createContentReference, _createContext, _createNonBlockingContext, _createParser, _decorate, _decorate, _decorate, _decorate, _decorate, _getBufferRecycler, canParseAsync, canUseSchema, configure, configure, configure, createGenerator, createGenerator, createGenerator, createGenerator, createJsonGenerator, createJsonGenerator, createJsonGenerator, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createNonBlockingByteArrayParser, createParser, createParser, createParser, createParser, createParser, disable, disable, disable, enable, enable, enable, getCharacterEscapes, getCodec, getFormatGeneratorFeatures, getFormatParserFeatures, getFormatReadFeatureType, getFormatWriteFeatureType, getGeneratorFeatures, getInputDecorator, getOutputDecorator, getParserFeatures, getRootValueSeparator, hasJSONFormat, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, requiresCustomCodec, setCharacterEscapes, setCodec, setInputDecorator, setOutputDecorator, setRootValueSeparatorpublic ProtobufFactory()
public ProtobufFactory(com.fasterxml.jackson.core.ObjectCodec codec)
protected ProtobufFactory(ProtobufFactory src, com.fasterxml.jackson.core.ObjectCodec oc)
protected ProtobufFactory(ProtobufFactoryBuilder b)
ProtobufFactoryBuilder for instantiation.public ProtobufFactoryBuilder rebuild()
rebuild in class com.fasterxml.jackson.core.JsonFactorypublic static ProtobufFactoryBuilder builder()
ProtobufFactory instances with
different configuration.public ProtobufFactory copy()
copy in class com.fasterxml.jackson.core.JsonFactoryprotected Object readResolve()
readResolve in class com.fasterxml.jackson.core.JsonFactorypublic com.fasterxml.jackson.core.Version version()
version in interface com.fasterxml.jackson.core.Versionedversion in class com.fasterxml.jackson.core.JsonFactorypublic String getFormatName()
getFormatName in class com.fasterxml.jackson.core.JsonFactorypublic com.fasterxml.jackson.core.format.MatchStrength hasFormat(com.fasterxml.jackson.core.format.InputAccessor acc)
throws IOException
hasFormat in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic boolean requiresPropertyOrdering()
requiresPropertyOrdering in class com.fasterxml.jackson.core.JsonFactorypublic boolean canHandleBinaryNatively()
canHandleBinaryNatively in class com.fasterxml.jackson.core.JsonFactorypublic boolean canUseCharArrays()
canUseCharArrays in class com.fasterxml.jackson.core.JsonFactorypublic ProtobufParser createParser(File f) throws IOException
createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic ProtobufParser createParser(URL url) throws IOException
createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic ProtobufParser createParser(InputStream in) throws IOException
createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic ProtobufParser createParser(byte[] data) throws IOException
createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic ProtobufParser createParser(byte[] data, int offset, int len) throws IOException
createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic ProtobufGenerator createGenerator(OutputStream out, com.fasterxml.jackson.core.JsonEncoding enc) throws IOException
createGenerator in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic ProtobufGenerator createGenerator(OutputStream out) throws IOException
JsonGenerator for generating
protobuf-encoded output.
Since protobuf format always uses UTF-8 internally, no encoding need to be passed to this method.
createGenerator in class com.fasterxml.jackson.core.JsonFactoryIOExceptionprotected com.fasterxml.jackson.core.io.IOContext _createContext(com.fasterxml.jackson.core.io.ContentReference contentRef,
boolean resourceManaged)
_createContext in class com.fasterxml.jackson.core.JsonFactoryprotected ProtobufParser _createParser(InputStream in, com.fasterxml.jackson.core.io.IOContext ctxt) throws IOException
_createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionprotected com.fasterxml.jackson.core.JsonParser _createParser(Reader r, com.fasterxml.jackson.core.io.IOContext ctxt) throws IOException
_createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionprotected com.fasterxml.jackson.core.JsonParser _createParser(char[] data,
int offset,
int len,
com.fasterxml.jackson.core.io.IOContext ctxt,
boolean recyclable)
throws IOException
_createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionprotected ProtobufParser _createParser(byte[] data, int offset, int len, com.fasterxml.jackson.core.io.IOContext ctxt) throws IOException
_createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionprotected ProtobufGenerator _createGenerator(Writer out, com.fasterxml.jackson.core.io.IOContext ctxt) throws IOException
_createGenerator in class com.fasterxml.jackson.core.JsonFactoryIOExceptionprotected ProtobufGenerator _createUTF8Generator(OutputStream out, com.fasterxml.jackson.core.io.IOContext ctxt) throws IOException
_createUTF8Generator in class com.fasterxml.jackson.core.JsonFactoryIOExceptionprotected Writer _createWriter(OutputStream out, com.fasterxml.jackson.core.JsonEncoding enc, com.fasterxml.jackson.core.io.IOContext ctxt) throws IOException
_createWriter in class com.fasterxml.jackson.core.JsonFactoryIOExceptionprotected <T> T _nonByteSource()
protected <T> T _nonByteTarget()
Copyright © 2021 FasterXML. All rights reserved.