public final class CsvParserBootstrapper extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
_bigEndian |
protected int |
_bytesPerChar |
protected com.fasterxml.jackson.core.io.IOContext |
_context |
protected InputStream |
_in |
protected byte[] |
_inputBuffer |
protected int |
_inputProcessed
Current number of input units (bytes or chars) that were processed in
previous blocks,
before contents of current input buffer.
|
Constructor and Description |
---|
CsvParserBootstrapper(com.fasterxml.jackson.core.io.IOContext ctxt,
char quoteChar,
byte[] inputBuffer,
int inputStart,
int inputLen) |
CsvParserBootstrapper(com.fasterxml.jackson.core.io.IOContext ctxt,
char quoteChar,
InputStream in) |
Modifier and Type | Method and Description |
---|---|
CsvParser |
constructParser(int baseFeatures,
int csvFeatures,
com.fasterxml.jackson.core.ObjectCodec codec) |
Reader |
constructReader() |
com.fasterxml.jackson.core.JsonEncoding |
detectEncoding()
Method that should be called after constructing an instace.
|
protected boolean |
ensureLoaded(int minimum) |
static com.fasterxml.jackson.core.format.MatchStrength |
hasCSVFormat(com.fasterxml.jackson.core.format.InputAccessor acc,
char quoteChar,
char separatorChar)
Current implementation is not as thorough as one used by
other data formats like JSON.
|
protected final com.fasterxml.jackson.core.io.IOContext _context
protected final InputStream _in
protected final byte[] _inputBuffer
protected int _inputProcessed
Note: includes possible BOMs, if those were part of the input.
protected boolean _bigEndian
protected int _bytesPerChar
public CsvParserBootstrapper(com.fasterxml.jackson.core.io.IOContext ctxt, char quoteChar, InputStream in)
public CsvParserBootstrapper(com.fasterxml.jackson.core.io.IOContext ctxt, char quoteChar, byte[] inputBuffer, int inputStart, int inputLen)
public com.fasterxml.jackson.core.JsonEncoding detectEncoding() throws IOException, com.fasterxml.jackson.core.JsonParseException
IOException
com.fasterxml.jackson.core.JsonParseException
public Reader constructReader() throws IOException
IOException
public CsvParser constructParser(int baseFeatures, int csvFeatures, com.fasterxml.jackson.core.ObjectCodec codec) throws IOException, com.fasterxml.jackson.core.JsonParseException
IOException
com.fasterxml.jackson.core.JsonParseException
public static com.fasterxml.jackson.core.format.MatchStrength hasCSVFormat(com.fasterxml.jackson.core.format.InputAccessor acc, char quoteChar, char separatorChar) throws IOException
IOException
protected boolean ensureLoaded(int minimum) throws IOException
IOException
Copyright © 2012-2013 FasterXML. All Rights Reserved.