Package | Description |
---|---|
com.fasterxml.jackson.dataformat.csv | |
com.fasterxml.jackson.dataformat.csv.impl |
Modifier and Type | Field and Description |
---|---|
protected CsvSchema |
CsvParser._schema
Definition of columns being read.
|
protected CsvSchema |
CsvGenerator._schema
Definition of columns being written, if available.
|
Modifier and Type | Field and Description |
---|---|
protected LRUMap<com.fasterxml.jackson.databind.JavaType,CsvSchema> |
CsvMapper._typedSchemas
Simple caching for schema instances, given that they are relatively expensive
to construct; this one is for typed schemas
|
protected LRUMap<com.fasterxml.jackson.databind.JavaType,CsvSchema> |
CsvMapper._untypedSchemas
Simple caching for schema instances, given that they are relatively expensive
to construct; this one is for "loose" (non-typed) schemas
|
Modifier and Type | Method and Description |
---|---|
protected CsvSchema |
CsvMapper._schemaFor(com.fasterxml.jackson.databind.JavaType pojoType,
LRUMap<com.fasterxml.jackson.databind.JavaType,CsvSchema> schemas,
boolean typed) |
CsvSchema |
CsvSchema.Builder.build() |
static CsvSchema |
CsvSchema.emptySchema()
Accessor for creating a "default" CSV schema instance, with following
settings:
Does NOT use header line
Uses double quotes ('"') for quoting of field values (if necessary)
Uses comma (',') as the field separator
Uses Unix linefeed ('\n') as row separator
Does NOT use any escape characters
Does NOT have any columns defined
|
CsvSchema |
CsvParser.getSchema()
Accessor for getting active schema definition: it may be
"empty" (no column definitions), but will never be null
since it defaults to an empty schema (and default configuration)
|
CsvSchema |
CsvMapper.schemaFor(Class<?> pojoType) |
CsvSchema |
CsvMapper.schemaFor(com.fasterxml.jackson.databind.JavaType pojoType)
Method that can be used to determine a CSV schema to use for given
POJO type, using default serialization settings including ordering.
|
CsvSchema |
CsvMapper.schemaFor(com.fasterxml.jackson.core.type.TypeReference<?> pojoTypeRef) |
CsvSchema |
CsvMapper.typedSchemaFor(Class<?> pojoType) |
CsvSchema |
CsvMapper.typedSchemaFor(com.fasterxml.jackson.databind.JavaType pojoType)
Method that can be used to determine a CSV schema to use for given
POJO type, using default serialization settings including ordering.
|
CsvSchema |
CsvMapper.typedSchemaFor(com.fasterxml.jackson.core.type.TypeReference<?> pojoTypeRef) |
CsvSchema |
CsvSchema.withColumnSeparator(char sep) |
CsvSchema |
CsvSchema.withEscapeChar(char c) |
CsvSchema |
CsvSchema.withHeader()
Helper method for construcing and returning schema instance that
is similar to this one, except that it will be using header line.
|
CsvSchema |
CsvSchema.withLineSeparator(String sep) |
CsvSchema |
CsvSchema.withoutColumns() |
CsvSchema |
CsvSchema.withoutEscapeChar() |
CsvSchema |
CsvSchema.withoutHeader()
Helper method for construcing and returning schema instance that
is similar to this one, except that it will not be using header line.
|
CsvSchema |
CsvSchema.withQuoteChar(char c) |
CsvSchema |
CsvSchema.withSkipFirstDataRow(boolean state) |
CsvSchema |
CsvSchema.withUseHeader(boolean state) |
Modifier and Type | Method and Description |
---|---|
protected CsvSchema |
CsvMapper._schemaFor(com.fasterxml.jackson.databind.JavaType pojoType,
LRUMap<com.fasterxml.jackson.databind.JavaType,CsvSchema> schemas,
boolean typed) |
Constructor and Description |
---|
CsvSchema.Builder(CsvSchema src)
"Copy" constructor which creates builder that has settings of
given source schema
|
Modifier and Type | Method and Description |
---|---|
void |
CsvReader.setSchema(CsvSchema schema) |
Constructor and Description |
---|
CsvReader(CsvParser owner,
com.fasterxml.jackson.core.io.IOContext ctxt,
Reader r,
CsvSchema schema,
TextBuffer textBuffer,
boolean autoCloseInput,
boolean trimSpaces) |
Copyright © 2012-2013 FasterXML. All Rights Reserved.