Uses of Class
com.fasterxml.jackson.dataformat.csv.CsvSchema
-
Packages that use CsvSchema Package Description com.fasterxml.jackson.dataformat.csv com.fasterxml.jackson.dataformat.csv.impl -
-
Uses of CsvSchema in com.fasterxml.jackson.dataformat.csv
Fields in com.fasterxml.jackson.dataformat.csv declared as CsvSchema Modifier and Type Field Description protected CsvSchema
CsvFactory. _schema
protected CsvSchema
CsvGenerator. _schema
Definition of columns being written, if available.protected CsvSchema
CsvMappingException. _schema
Deprecated.protected CsvSchema
CsvParser. _schema
Definition of columns being read.protected static CsvSchema
CsvFactory. DEFAULT_SCHEMA
private static CsvSchema
CsvGenerator. EMPTY_SCHEMA
private static CsvSchema
CsvParser. EMPTY_SCHEMA
Fields in com.fasterxml.jackson.dataformat.csv with type parameters of type CsvSchema Modifier and Type Field Description protected LRUMap<CsvMapper.ViewKey,CsvSchema>
CsvMapper. _typedSchemas
Simple caching for schema instances, given that they are relatively expensive to construct; this one is for typed schemasprotected LRUMap<CsvMapper.ViewKey,CsvSchema>
CsvMapper. _untypedSchemas
Simple caching for schema instances, given that they are relatively expensive to construct; this one is for "loose" (non-typed) schemasMethods in com.fasterxml.jackson.dataformat.csv that return CsvSchema Modifier and Type Method Description protected CsvSchema
CsvMapper. _schemaFor(com.fasterxml.jackson.databind.JavaType pojoType, LRUMap<CsvMapper.ViewKey,CsvSchema> schemas, boolean typed)
Deprecated.protected CsvSchema
CsvMapper. _schemaFor(com.fasterxml.jackson.databind.JavaType pojoType, LRUMap<CsvMapper.ViewKey,CsvSchema> schemas, boolean typed, java.lang.Class<?> view)
protected CsvSchema
CsvSchema. _withFeature(int feature, boolean state)
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 definedCsvSchema
CsvMappingException. getSchema()
Deprecated.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. schema()
Convenience method that is same asCsvSchema
CsvMapper. schemaFor(com.fasterxml.jackson.core.type.TypeReference<?> pojoTypeRef)
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(java.lang.Class<?> pojoType)
CsvSchema
CsvMapper. schemaForWithView(com.fasterxml.jackson.core.type.TypeReference<?> pojoTypeRef, java.lang.Class<?> view)
CsvSchema
CsvMapper. schemaForWithView(com.fasterxml.jackson.databind.JavaType pojoType, java.lang.Class<?> view)
CsvSchema
CsvMapper. schemaForWithView(java.lang.Class<?> pojoType, java.lang.Class<?> view)
CsvSchema
CsvMapper. schemaWithHeader()
Convenience method that is same asCsvSchema
CsvSchema. sortedBy(java.lang.String... columnNames)
Mutant factory method that will construct a new instance in which columns are sorted based on names given as argument.CsvSchema
CsvSchema. sortedBy(java.util.Comparator<java.lang.String> cmp)
Mutant factory method that will construct a new instance in which columns are sorted using givenComparator
over column names.CsvSchema
CsvMapper. typedSchemaFor(com.fasterxml.jackson.core.type.TypeReference<?> pojoTypeRef)
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(java.lang.Class<?> pojoType)
CsvSchema
CsvMapper. typedSchemaForWithView(com.fasterxml.jackson.core.type.TypeReference<?> pojoTypeRef, java.lang.Class<?> view)
CsvSchema
CsvMapper. typedSchemaForWithView(com.fasterxml.jackson.databind.JavaType pojoType, java.lang.Class<?> view)
CsvSchema
CsvMapper. typedSchemaForWithView(java.lang.Class<?> pojoType, java.lang.Class<?> view)
CsvSchema
CsvSchema. withAllowComments(boolean state)
Method to indicate whether "hash comments" are allowed for document described by this schema.CsvSchema
CsvSchema. withAnyPropertyName(java.lang.String name)
CsvSchema
CsvSchema. withArrayElementSeparator(char c)
Deprecated.usewithArrayElementSeparator(String)
insteadCsvSchema
CsvSchema. withArrayElementSeparator(java.lang.String separator)
CsvSchema
CsvSchema. withColumnReordering(boolean state)
Returns a clone of this instance by changing or setting the column reordering flagCsvSchema
CsvSchema. withColumnSeparator(char sep)
CsvSchema
CsvSchema. withColumnsFrom(CsvSchema toAppend)
Mutant factory method that will try to combine columns of this schema with those from `toAppend`, starting with columns of this instance, and ignoring duplicates (if any) from argument `toAppend`.CsvSchema
CsvSchema. withComments()
Method to indicate that "hash comments" ARE allowed for document described by this schema.CsvSchema
CsvSchema. withEscapeChar(char c)
CsvSchema
CsvSchema. withHeader()
Helper method for constructing and returning schema instance that is similar to this one, except that it will be using header line.CsvSchema
CsvSchema. withLineSeparator(java.lang.String sep)
CsvSchema
CsvSchema. withNullValue(java.lang.String nvl)
CsvSchema
CsvSchema. withoutArrayElementSeparator()
CsvSchema
CsvSchema. withoutColumns()
CsvSchema
CsvSchema. withoutComments()
Method to indicate that "hash comments" are NOT allowed for document described by this schema.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. withoutQuoteChar()
CsvSchema
CsvSchema. withQuoteChar(char c)
CsvSchema
CsvSchema. withSkipFirstDataRow(boolean state)
CsvSchema
CsvSchema. withStrictHeaders(boolean state)
Returns a clone of this instance by changing or setting the strict headers flagCsvSchema
CsvSchema. withUseHeader(boolean state)
Methods in com.fasterxml.jackson.dataformat.csv with parameters of type CsvSchema Modifier and Type Method Description CsvSchema.Builder
CsvSchema.Builder. addColumnsFrom(CsvSchema schema)
NOTE: unlike many other add methods, this method DOES check for, and discard, possible duplicate columns: that is, if this builder already has a column with same name as column to be added, existing column is retained and new column ignored.static CsvMappingException
CsvMappingException. from(CsvGenerator gen, java.lang.String msg, CsvSchema schema)
Deprecated.static CsvMappingException
CsvMappingException. from(CsvParser p, java.lang.String msg, CsvSchema schema)
Deprecated.static CsvReadException
CsvReadException. from(CsvParser p, java.lang.String msg, CsvSchema schema)
static CsvWriteException
CsvWriteException. from(CsvGenerator gen, java.lang.String msg, CsvSchema schema)
CsvSchema
CsvSchema. withColumnsFrom(CsvSchema toAppend)
Mutant factory method that will try to combine columns of this schema with those from `toAppend`, starting with columns of this instance, and ignoring duplicates (if any) from argument `toAppend`.Method parameters in com.fasterxml.jackson.dataformat.csv with type arguments of type CsvSchema Modifier and Type Method Description protected CsvSchema
CsvMapper. _schemaFor(com.fasterxml.jackson.databind.JavaType pojoType, LRUMap<CsvMapper.ViewKey,CsvSchema> schemas, boolean typed)
Deprecated.protected CsvSchema
CsvMapper. _schemaFor(com.fasterxml.jackson.databind.JavaType pojoType, LRUMap<CsvMapper.ViewKey,CsvSchema> schemas, boolean typed, java.lang.Class<?> view)
Constructors in com.fasterxml.jackson.dataformat.csv with parameters of type CsvSchema Constructor Description Builder(CsvSchema src)
"Copy" constructor which creates builder that has settings of given source schemaCsvGenerator(com.fasterxml.jackson.core.io.IOContext ctxt, int jsonFeatures, int csvFeatures, com.fasterxml.jackson.core.ObjectCodec codec, java.io.Writer out, CsvSchema schema)
CsvMappingException(CsvGenerator gen, java.lang.String msg, CsvSchema schema)
Deprecated.CsvMappingException(CsvParser p, java.lang.String msg, CsvSchema schema)
Deprecated.CsvReadException(CsvParser p, java.lang.String msg, CsvSchema schema)
CsvSchema(CsvSchema base, int features)
Copy constructor used for creating variants for on/off featuresCsvSchema(CsvSchema base, CsvSchema.Column[] columns)
Copy constructor used for creating variants usingsortedBy()
methods.CsvWriteException(CsvGenerator gen, java.lang.String msg, CsvSchema schema)
-
Uses of CsvSchema in com.fasterxml.jackson.dataformat.csv.impl
Methods in com.fasterxml.jackson.dataformat.csv.impl with parameters of type CsvSchema Modifier and Type Method Description void
CsvDecoder. setSchema(CsvSchema schema)
CsvEncoder
CsvEncoder. withSchema(CsvSchema schema)
Constructors in com.fasterxml.jackson.dataformat.csv.impl with parameters of type CsvSchema Constructor Description CsvDecoder(CsvParser owner, com.fasterxml.jackson.core.io.IOContext ctxt, java.io.Reader r, CsvSchema schema, com.fasterxml.jackson.core.util.TextBuffer textBuffer, int stdFeatures, int csvFeatures)
CsvEncoder(com.fasterxml.jackson.core.io.IOContext ctxt, int csvFeatures, java.io.Writer out, CsvSchema schema)
Deprecated.CsvEncoder(com.fasterxml.jackson.core.io.IOContext ctxt, int csvFeatures, java.io.Writer out, CsvSchema schema, boolean useFastDoubleWriter)
CsvEncoder(CsvEncoder base, CsvSchema newSchema)
-