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 CsvSchemaCsvFactory. _schemaprotected CsvSchemaCsvGenerator. _schemaDefinition of columns being written, if available.protected CsvSchemaCsvMappingException. _schemaprotected CsvSchemaCsvParser. _schemaDefinition of columns being read.protected static CsvSchemaCsvFactory. DEFAULT_SCHEMAFields in com.fasterxml.jackson.dataformat.csv with type parameters of type CsvSchema Modifier and Type Field Description protected LRUMap<com.fasterxml.jackson.databind.JavaType,CsvSchema>CsvMapper. _typedSchemasSimple caching for schema instances, given that they are relatively expensive to construct; this one is for typed schemasprotected LRUMap<com.fasterxml.jackson.databind.JavaType,CsvSchema>CsvMapper. _untypedSchemasSimple 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 CsvSchemaCsvMapper. _schemaFor(com.fasterxml.jackson.databind.JavaType pojoType, LRUMap<com.fasterxml.jackson.databind.JavaType,CsvSchema> schemas, boolean typed)protected CsvSchemaCsvSchema. _withFeature(int feature, boolean state)CsvSchemaCsvSchema.Builder. build()static CsvSchemaCsvSchema. 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 definedCsvSchemaCsvMappingException. getSchema()CsvSchemaCsvParser. 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)CsvSchemaCsvMapper. schema()Convenience method that is same asCsvSchemaCsvMapper. schemaFor(com.fasterxml.jackson.core.type.TypeReference<?> pojoTypeRef)CsvSchemaCsvMapper. 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.CsvSchemaCsvMapper. schemaFor(java.lang.Class<?> pojoType)CsvSchemaCsvMapper. schemaWithHeader()Convenience method that is same asCsvSchemaCsvSchema. 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.CsvSchemaCsvSchema. sortedBy(java.util.Comparator<java.lang.String> cmp)Mutant factory method that will construct a new instance in which columns are sorted using givenComparatorover column names.CsvSchemaCsvMapper. typedSchemaFor(com.fasterxml.jackson.core.type.TypeReference<?> pojoTypeRef)CsvSchemaCsvMapper. 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.CsvSchemaCsvMapper. typedSchemaFor(java.lang.Class<?> pojoType)CsvSchemaCsvSchema. withAllowComments(boolean state)Method to indicate whether "hash comments" are allowed for document described by this schema.CsvSchemaCsvSchema. withAnyPropertyName(java.lang.String name)CsvSchemaCsvSchema. withArrayElementSeparator(char c)Deprecated.usewithArrayElementSeparator(String)insteadCsvSchemaCsvSchema. withArrayElementSeparator(java.lang.String separator)CsvSchemaCsvSchema. withColumnReordering(boolean state)Returns a clone of this instance by changing or setting the column reordering flagCsvSchemaCsvSchema. withColumnSeparator(char sep)CsvSchemaCsvSchema. 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`.CsvSchemaCsvSchema. withComments()Method to indicate that "hash comments" ARE allowed for document described by this schema.CsvSchemaCsvSchema. withEscapeChar(char c)CsvSchemaCsvSchema. withHeader()Helper method for constructing and returning schema instance that is similar to this one, except that it will be using header line.CsvSchemaCsvSchema. withLineSeparator(java.lang.String sep)CsvSchemaCsvSchema. withNullValue(java.lang.String nvl)CsvSchemaCsvSchema. withoutArrayElementSeparator()CsvSchemaCsvSchema. withoutColumns()CsvSchemaCsvSchema. withoutComments()Method to indicate that "hash comments" are NOT allowed for document described by this schema.CsvSchemaCsvSchema. withoutEscapeChar()CsvSchemaCsvSchema. withoutHeader()Helper method for construcing and returning schema instance that is similar to this one, except that it will not be using header line.CsvSchemaCsvSchema. withoutQuoteChar()CsvSchemaCsvSchema. withQuoteChar(char c)CsvSchemaCsvSchema. withSkipFirstDataRow(boolean state)CsvSchemaCsvSchema. withStrictHeaders(boolean state)Returns a clone of this instance by changing or setting the strict headers flagCsvSchemaCsvSchema. withUseHeader(boolean state)Methods in com.fasterxml.jackson.dataformat.csv with parameters of type CsvSchema Modifier and Type Method Description CsvSchema.BuilderCsvSchema.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 CsvMappingExceptionCsvMappingException. from(CsvGenerator gen, java.lang.String msg, CsvSchema schema)static CsvMappingExceptionCsvMappingException. from(CsvParser p, java.lang.String msg, CsvSchema schema)CsvSchemaCsvSchema. 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 CsvSchemaCsvMapper. _schemaFor(com.fasterxml.jackson.databind.JavaType pojoType, LRUMap<com.fasterxml.jackson.databind.JavaType,CsvSchema> schemas, boolean typed)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)CsvMappingException(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. -
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 voidCsvDecoder. setSchema(CsvSchema schema)CsvEncoderCsvEncoder. 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, TextBuffer textBuffer, int stdFeatures, int csvFeatures)CsvEncoder(com.fasterxml.jackson.core.io.IOContext ctxt, int csvFeatures, java.io.Writer out, CsvSchema schema)CsvEncoder(CsvEncoder base, CsvSchema newSchema)
-