public class CsvFactory
extends com.fasterxml.jackson.core.JsonFactory
| Modifier and Type | Field and Description |
|---|---|
protected int |
_csvGeneratorFeatures |
protected int |
_csvParserFeatures |
protected CsvSchema |
_schema |
protected static char[] |
DEFAULT_LF |
protected static CsvSchema |
DEFAULT_SCHEMA |
static String |
FORMAT_NAME_CSV
Name used to identify CSV format.
|
_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 |
|---|---|
|
CsvFactory()
Default constructor used to create factory instances.
|
protected |
CsvFactory(CsvFactoryBuilder b)
Constructors used by
CsvFactoryBuilder for instantiation. |
protected |
CsvFactory(CsvFactory src,
com.fasterxml.jackson.core.ObjectCodec oc) |
|
CsvFactory(com.fasterxml.jackson.core.ObjectCodec oc) |
| Modifier and Type | Method and Description |
|---|---|
protected com.fasterxml.jackson.core.io.IOContext |
_createContext(Object srcRef,
boolean resourceManaged) |
protected CsvGenerator |
_createGenerator(com.fasterxml.jackson.core.io.IOContext ctxt,
Writer out) |
protected CsvGenerator |
_createGenerator(Writer out,
com.fasterxml.jackson.core.io.IOContext ctxt) |
protected CsvParser |
_createParser(byte[] data,
int offset,
int len,
com.fasterxml.jackson.core.io.IOContext ctxt) |
protected CsvParser |
_createParser(char[] data,
int offset,
int len,
com.fasterxml.jackson.core.io.IOContext ctxt,
boolean recyclable) |
protected CsvParser |
_createParser(InputStream in,
com.fasterxml.jackson.core.io.IOContext ctxt)
Overridable factory method that actually instantiates desired parser.
|
protected CsvParser |
_createParser(Reader r,
com.fasterxml.jackson.core.io.IOContext ctxt)
Overridable factory method that actually instantiates desired parser.
|
protected Reader |
_createReader(byte[] data,
int offset,
int len,
com.fasterxml.jackson.core.JsonEncoding enc,
com.fasterxml.jackson.core.io.IOContext ctxt) |
protected Reader |
_createReader(InputStream in,
com.fasterxml.jackson.core.JsonEncoding enc,
com.fasterxml.jackson.core.io.IOContext ctxt) |
protected CsvGenerator |
_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) |
static CsvFactoryBuilder |
builder()
Main factory method to use for constructing
CsvFactory instances with
different configuration. |
boolean |
canUseCharArrays() |
boolean |
canUseSchema(com.fasterxml.jackson.core.FormatSchema schema) |
CsvFactory |
configure(CsvGenerator.Feature f,
boolean state)
Method for enabling or disabling specified generator feature
(check
CsvGenerator.Feature for list of features) |
CsvFactory |
configure(CsvParser.Feature f,
boolean state)
Method for enabling or disabling specified parser feature
(check
CsvParser.Feature for list of features) |
CsvFactory |
copy() |
CsvGenerator |
createGenerator(File f,
com.fasterxml.jackson.core.JsonEncoding enc) |
CsvGenerator |
createGenerator(OutputStream out)
This method assumes use of UTF-8 for encoding.
|
CsvGenerator |
createGenerator(OutputStream out,
com.fasterxml.jackson.core.JsonEncoding enc) |
CsvGenerator |
createGenerator(Writer out) |
CsvParser |
createParser(byte[] data) |
CsvParser |
createParser(byte[] data,
int offset,
int len) |
CsvParser |
createParser(char[] data) |
CsvParser |
createParser(char[] data,
int offset,
int len) |
CsvParser |
createParser(File f) |
CsvParser |
createParser(InputStream in) |
CsvParser |
createParser(Reader r) |
CsvParser |
createParser(String doc) |
CsvParser |
createParser(URL url) |
CsvFactory |
disable(CsvGenerator.Feature f)
Method for disabling specified generator feature
(check
CsvGenerator.Feature for list of features) |
CsvFactory |
disable(CsvParser.Feature f)
Method for disabling specified parser features
(check
CsvParser.Feature for list of features) |
CsvFactory |
enable(CsvGenerator.Feature f)
Method for enabling specified generator features
(check
CsvGenerator.Feature for list of features) |
CsvFactory |
enable(CsvParser.Feature f)
Method for enabling specified parser feature
(check
CsvParser.Feature for list of features) |
int |
getFormatGeneratorFeatures() |
String |
getFormatName() |
int |
getFormatParserFeatures() |
com.fasterxml.jackson.core.format.MatchStrength |
hasFormat(com.fasterxml.jackson.core.format.InputAccessor acc) |
boolean |
isEnabled(CsvGenerator.Feature f)
Check whether specified generator feature is enabled.
|
boolean |
isEnabled(CsvParser.Feature f)
Checked whether specified parser feature is enabled.
|
protected Object |
readResolve()
Method that we need to override to actually make restoration go
through constructors etc.
|
CsvFactoryBuilder |
rebuild() |
boolean |
requiresPropertyOrdering() |
com.fasterxml.jackson.core.Version |
version() |
_checkInvalidCopy, _createNonBlockingContext, _createParser, _decorate, _decorate, _decorate, _decorate, _decorate, _getBufferRecycler, canHandleBinaryNatively, canParseAsync, configure, configure, configure, createGenerator, createGenerator, createJsonGenerator, createJsonGenerator, createJsonGenerator, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createNonBlockingByteArrayParser, createParser, disable, disable, disable, enable, enable, enable, getCharacterEscapes, getCodec, getFormatReadFeatureType, getFormatWriteFeatureType, getGeneratorFeatures, getInputDecorator, getOutputDecorator, getParserFeatures, getRootValueSeparator, hasJSONFormat, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, requiresCustomCodec, setCharacterEscapes, setCodec, setInputDecorator, setOutputDecorator, setRootValueSeparatorpublic static final String FORMAT_NAME_CSV
getFormatName()protected static final char[] DEFAULT_LF
protected static final CsvSchema DEFAULT_SCHEMA
protected CsvSchema _schema
protected int _csvParserFeatures
protected int _csvGeneratorFeatures
public CsvFactory()
public CsvFactory(com.fasterxml.jackson.core.ObjectCodec oc)
protected CsvFactory(CsvFactory src, com.fasterxml.jackson.core.ObjectCodec oc)
protected CsvFactory(CsvFactoryBuilder b)
CsvFactoryBuilder for instantiation.public CsvFactoryBuilder rebuild()
rebuild in class com.fasterxml.jackson.core.JsonFactorypublic static CsvFactoryBuilder builder()
CsvFactory instances with
different configuration.public CsvFactory 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 boolean requiresPropertyOrdering()
requiresPropertyOrdering in class com.fasterxml.jackson.core.JsonFactorypublic boolean canUseCharArrays()
canUseCharArrays 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 canUseSchema(com.fasterxml.jackson.core.FormatSchema schema)
canUseSchema in class com.fasterxml.jackson.core.JsonFactorypublic final CsvFactory configure(CsvParser.Feature f, boolean state)
CsvParser.Feature for list of features)public CsvFactory enable(CsvParser.Feature f)
CsvParser.Feature for list of features)public CsvFactory disable(CsvParser.Feature f)
CsvParser.Feature for list of features)public final boolean isEnabled(CsvParser.Feature f)
public int getFormatParserFeatures()
getFormatParserFeatures in class com.fasterxml.jackson.core.JsonFactorypublic final CsvFactory configure(CsvGenerator.Feature f, boolean state)
CsvGenerator.Feature for list of features)public CsvFactory enable(CsvGenerator.Feature f)
CsvGenerator.Feature for list of features)public CsvFactory disable(CsvGenerator.Feature f)
CsvGenerator.Feature for list of features)public final boolean isEnabled(CsvGenerator.Feature f)
public int getFormatGeneratorFeatures()
getFormatGeneratorFeatures in class com.fasterxml.jackson.core.JsonFactorypublic CsvParser createParser(File f) throws IOException
createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic CsvParser createParser(URL url) throws IOException
createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic CsvParser createParser(InputStream in) throws IOException
createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic CsvParser createParser(Reader r) throws IOException
createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic CsvParser createParser(String doc) throws IOException
createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic CsvParser createParser(byte[] data) throws IOException
createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic CsvParser createParser(byte[] data, int offset, int len) throws IOException
createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic CsvParser createParser(char[] data) throws IOException
createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic CsvParser createParser(char[] data, int offset, int len) throws IOException
createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic CsvGenerator createGenerator(OutputStream out, com.fasterxml.jackson.core.JsonEncoding enc) throws IOException
createGenerator in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic CsvGenerator createGenerator(OutputStream out) throws IOException
createGenerator in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic CsvGenerator createGenerator(Writer out) throws IOException
createGenerator in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic CsvGenerator createGenerator(File f, com.fasterxml.jackson.core.JsonEncoding enc) throws IOException
createGenerator in class com.fasterxml.jackson.core.JsonFactoryIOExceptionprotected CsvParser _createParser(InputStream in, com.fasterxml.jackson.core.io.IOContext ctxt) throws IOException
_createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionprotected CsvParser _createParser(byte[] data, int offset, int len, com.fasterxml.jackson.core.io.IOContext ctxt) throws IOException
_createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionprotected CsvParser _createParser(Reader r, com.fasterxml.jackson.core.io.IOContext ctxt) throws IOException
_createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionprotected CsvParser _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 CsvGenerator _createGenerator(Writer out, com.fasterxml.jackson.core.io.IOContext ctxt) throws IOException
_createGenerator in class com.fasterxml.jackson.core.JsonFactoryIOExceptionprotected CsvGenerator _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 CsvGenerator _createGenerator(com.fasterxml.jackson.core.io.IOContext ctxt, Writer out) throws IOException
IOExceptionprotected Reader _createReader(InputStream in, com.fasterxml.jackson.core.JsonEncoding enc, com.fasterxml.jackson.core.io.IOContext ctxt) throws IOException
IOExceptionprotected Reader _createReader(byte[] data, int offset, int len, com.fasterxml.jackson.core.JsonEncoding enc, com.fasterxml.jackson.core.io.IOContext ctxt) throws IOException
IOExceptionprotected com.fasterxml.jackson.core.io.IOContext _createContext(Object srcRef, boolean resourceManaged)
_createContext in class com.fasterxml.jackson.core.JsonFactoryCopyright © 2020 FasterXML. All rights reserved.