|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fasterxml.jackson.core.JsonFactory
com.fasterxml.jackson.dataformat.csv.CsvFactory
public class CsvFactory
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.fasterxml.jackson.core.JsonFactory |
|---|
com.fasterxml.jackson.core.JsonFactory.Feature |
| Field Summary | |
|---|---|
protected char |
_cfgColumnSeparator
|
protected char[] |
_cfgLineSeparator
|
protected char |
_cfgQuoteCharacter
|
protected int |
_csvGeneratorFeatures
|
protected int |
_csvParserFeatures
|
protected static char[] |
DEFAULT_LF
|
static String |
FORMAT_NAME_CSV
Name used to identify CSV format. |
| Fields inherited from class com.fasterxml.jackson.core.JsonFactory |
|---|
_characterEscapes, _factoryFeatures, _generatorFeatures, _inputDecorator, _objectCodec, _outputDecorator, _parserFeatures, _recyclerRef, _rootByteSymbols, _rootCharSymbols, _rootValueSeparator, DEFAULT_FACTORY_FEATURE_FLAGS, DEFAULT_GENERATOR_FEATURE_FLAGS, DEFAULT_PARSER_FEATURE_FLAGS, FORMAT_NAME_JSON |
| Constructor Summary | |
|---|---|
CsvFactory()
Default constructor used to create factory instances. |
|
CsvFactory(com.fasterxml.jackson.core.ObjectCodec oc)
|
|
| Method Summary | |
|---|---|
protected CsvGenerator |
_createGenerator(com.fasterxml.jackson.core.io.IOContext ctxt,
Writer out)
|
protected CsvGenerator |
_createGenerator(Writer out,
com.fasterxml.jackson.core.io.IOContext ctxt)
Overridable factory method that actually instantiates desired generator. |
protected CsvParser |
_createParser(byte[] data,
int offset,
int len,
com.fasterxml.jackson.core.io.IOContext ctxt)
Overridable factory method that actually instantiates desired parser. |
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 Writer |
_createWriter(OutputStream out,
com.fasterxml.jackson.core.JsonEncoding enc,
com.fasterxml.jackson.core.io.IOContext ctxt)
|
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) |
CsvGenerator |
createJsonGenerator(OutputStream out)
This method assumes use of UTF-8 for encoding. |
CsvGenerator |
createJsonGenerator(OutputStream out,
com.fasterxml.jackson.core.JsonEncoding enc)
note: co-variant return type |
CsvParser |
createJsonParser(byte[] data)
|
CsvParser |
createJsonParser(byte[] data,
int offset,
int len)
|
CsvParser |
createJsonParser(File f)
|
CsvParser |
createJsonParser(InputStream in)
|
com.fasterxml.jackson.core.JsonParser |
createJsonParser(Reader r)
|
CsvParser |
createJsonParser(URL url)
|
CsvParser |
createParser(byte[] data)
|
CsvParser |
createParser(byte[] data,
int offset,
int len)
|
CsvParser |
createParser(File f)
|
CsvParser |
createParser(InputStream in)
|
com.fasterxml.jackson.core.JsonParser |
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) |
String |
getFormatName()
|
com.fasterxml.jackson.core.format.MatchStrength |
hasFormat(com.fasterxml.jackson.core.format.InputAccessor acc)
Sub-classes need to override this method (as of 1.8) |
boolean |
isEnabled(CsvGenerator.Feature f)
Check whether specified generator feature is enabled. |
boolean |
isEnabled(CsvParser.Feature f)
Checked whether specified parser feature is enabled. |
com.fasterxml.jackson.core.Version |
version()
|
| Methods inherited from class com.fasterxml.jackson.core.JsonFactory |
|---|
_checkInvalidCopy, _createContext, _createJsonGenerator, _createJsonParser, _createJsonParser, _createJsonParser, _createUTF8Generator, _createUTF8JsonGenerator, _getBufferRecycler, _optimizedStreamFromURL, canUseSchema, configure, configure, configure, copy, createGenerator, createGenerator, createGenerator, createGenerator, createJsonGenerator, createJsonGenerator, createJsonParser, disable, disable, disable, enable, enable, enable, getCharacterEscapes, getCodec, getInputDecorator, getOutputDecorator, getRootValueSeparator, hasJSONFormat, isEnabled, isEnabled, isEnabled, readResolve, requiresCustomCodec, setCharacterEscapes, setCodec, setInputDecorator, setOutputDecorator, setRootValueSeparator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String FORMAT_NAME_CSV
getFormatName()
protected static final char[] DEFAULT_LF
protected int _csvParserFeatures
protected int _csvGeneratorFeatures
protected char _cfgColumnSeparator
protected char _cfgQuoteCharacter
protected char[] _cfgLineSeparator
| Constructor Detail |
|---|
public CsvFactory()
public CsvFactory(com.fasterxml.jackson.core.ObjectCodec oc)
| Method Detail |
|---|
public 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.JsonFactory
public com.fasterxml.jackson.core.format.MatchStrength hasFormat(com.fasterxml.jackson.core.format.InputAccessor acc)
throws IOException
hasFormat in class com.fasterxml.jackson.core.JsonFactoryIOException
public 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 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 CsvParser createParser(InputStream in)
throws IOException,
com.fasterxml.jackson.core.JsonParseException
createParser in class com.fasterxml.jackson.core.JsonFactoryIOException
com.fasterxml.jackson.core.JsonParseException
public com.fasterxml.jackson.core.JsonParser createParser(Reader r)
throws IOException,
com.fasterxml.jackson.core.JsonParseException
createParser in class com.fasterxml.jackson.core.JsonFactoryIOException
com.fasterxml.jackson.core.JsonParseException
public CsvParser createParser(File f)
throws IOException,
com.fasterxml.jackson.core.JsonParseException
createParser in class com.fasterxml.jackson.core.JsonFactoryIOException
com.fasterxml.jackson.core.JsonParseException
public CsvParser createParser(URL url)
throws IOException,
com.fasterxml.jackson.core.JsonParseException
createParser in class com.fasterxml.jackson.core.JsonFactoryIOException
com.fasterxml.jackson.core.JsonParseException
public CsvParser createParser(String doc)
throws IOException,
com.fasterxml.jackson.core.JsonParseException
createParser in class com.fasterxml.jackson.core.JsonFactoryIOException
com.fasterxml.jackson.core.JsonParseException
public CsvParser createParser(byte[] data)
throws IOException,
com.fasterxml.jackson.core.JsonParseException
createParser in class com.fasterxml.jackson.core.JsonFactoryIOException
com.fasterxml.jackson.core.JsonParseException
public CsvParser createParser(byte[] data,
int offset,
int len)
throws IOException,
com.fasterxml.jackson.core.JsonParseException
createParser in class com.fasterxml.jackson.core.JsonFactoryIOException
com.fasterxml.jackson.core.JsonParseException
public CsvParser createJsonParser(File f)
throws IOException,
com.fasterxml.jackson.core.JsonParseException
createJsonParser in class com.fasterxml.jackson.core.JsonFactoryIOException
com.fasterxml.jackson.core.JsonParseException
public CsvParser createJsonParser(URL url)
throws IOException,
com.fasterxml.jackson.core.JsonParseException
createJsonParser in class com.fasterxml.jackson.core.JsonFactoryIOException
com.fasterxml.jackson.core.JsonParseException
public CsvParser createJsonParser(InputStream in)
throws IOException,
com.fasterxml.jackson.core.JsonParseException
createJsonParser in class com.fasterxml.jackson.core.JsonFactoryIOException
com.fasterxml.jackson.core.JsonParseException
public com.fasterxml.jackson.core.JsonParser createJsonParser(Reader r)
throws IOException,
com.fasterxml.jackson.core.JsonParseException
createJsonParser in class com.fasterxml.jackson.core.JsonFactoryIOException
com.fasterxml.jackson.core.JsonParseException
public CsvParser createJsonParser(byte[] data)
throws IOException,
com.fasterxml.jackson.core.JsonParseException
createJsonParser in class com.fasterxml.jackson.core.JsonFactoryIOException
com.fasterxml.jackson.core.JsonParseException
public CsvParser createJsonParser(byte[] data,
int offset,
int len)
throws IOException,
com.fasterxml.jackson.core.JsonParseException
createJsonParser in class com.fasterxml.jackson.core.JsonFactoryIOException
com.fasterxml.jackson.core.JsonParseException
public CsvGenerator createJsonGenerator(OutputStream out,
com.fasterxml.jackson.core.JsonEncoding enc)
throws IOException
note: co-variant return type
createJsonGenerator in class com.fasterxml.jackson.core.JsonFactoryIOException
public CsvGenerator createJsonGenerator(OutputStream out)
throws IOException
createJsonGenerator in class com.fasterxml.jackson.core.JsonFactoryIOException
protected CsvParser _createParser(InputStream in,
com.fasterxml.jackson.core.io.IOContext ctxt)
throws IOException,
com.fasterxml.jackson.core.JsonParseException
_createParser in class com.fasterxml.jackson.core.JsonFactoryIOException
com.fasterxml.jackson.core.JsonParseException
protected CsvParser _createParser(Reader r,
com.fasterxml.jackson.core.io.IOContext ctxt)
throws IOException,
com.fasterxml.jackson.core.JsonParseException
_createParser in class com.fasterxml.jackson.core.JsonFactoryIOException
com.fasterxml.jackson.core.JsonParseException
protected CsvParser _createParser(byte[] data,
int offset,
int len,
com.fasterxml.jackson.core.io.IOContext ctxt)
throws IOException,
com.fasterxml.jackson.core.JsonParseException
_createParser in class com.fasterxml.jackson.core.JsonFactoryIOException
com.fasterxml.jackson.core.JsonParseException
protected CsvGenerator _createGenerator(Writer out,
com.fasterxml.jackson.core.io.IOContext ctxt)
throws IOException
_createGenerator in class com.fasterxml.jackson.core.JsonFactoryIOException
protected 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.JsonFactoryIOException
protected CsvGenerator _createGenerator(com.fasterxml.jackson.core.io.IOContext ctxt,
Writer out)
throws IOException
IOException
protected Reader _createReader(InputStream in,
com.fasterxml.jackson.core.JsonEncoding enc,
com.fasterxml.jackson.core.io.IOContext ctxt)
throws IOException
IOException
protected Reader _createReader(byte[] data,
int offset,
int len,
com.fasterxml.jackson.core.JsonEncoding enc,
com.fasterxml.jackson.core.io.IOContext ctxt)
throws IOException
IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||