Uses of Class
tools.jackson.dataformat.csv.CsvSchema
Packages that use CsvSchema
-
Uses of CsvSchema in tools.jackson.dataformat.csv
Fields in tools.jackson.dataformat.csv declared as CsvSchemaModifier and TypeFieldDescriptionprotected final CsvSchemaCsvGenerator._schemaDefinition of columns being written, if available.protected CsvSchemaCsvParser._schemaDefinition of columns being read.protected final CsvSchemaCsvReadException._schemaprotected final CsvSchemaCsvWriteException._schemaprotected static final CsvSchemaCsvFactory.DEFAULT_SCHEMAprivate static final CsvSchemaCsvGenerator.EMPTY_SCHEMAprivate static final CsvSchemaCsvParser.EMPTY_SCHEMAFields in tools.jackson.dataformat.csv with type parameters of type CsvSchemaModifier and TypeFieldDescriptionprotected final tools.jackson.databind.util.SimpleLookupCache<CsvMapper.ViewKey, CsvSchema> CsvMapper._typedSchemasSimple caching for schema instances, given that they are relatively expensive to construct; this one is for typed schemasprotected final tools.jackson.databind.util.SimpleLookupCache<CsvMapper.ViewKey, CsvSchema> CsvMapper._untypedSchemasSimple caching for schema instances, given that they are relatively expensive to construct; this one is for "loose" (non-typed) schemasMethods in tools.jackson.dataformat.csv that return CsvSchemaModifier and TypeMethodDescriptionprivate final CsvSchemaCsvFactory._getSchema(tools.jackson.core.ObjectReadContext readCtxt) private final CsvSchemaCsvFactory._getSchema(tools.jackson.core.ObjectWriteContext writeCtxt) protected CsvSchemaCsvMapper._schemaFor(tools.jackson.databind.JavaType pojoType, tools.jackson.databind.util.SimpleLookupCache<CsvMapper.ViewKey, CsvSchema> schemas, boolean typed, Class<?> view) protected CsvSchemaCsvSchema._withColumn(int ix, CsvSchema.Column toReplace) protected CsvSchemaCsvSchema._withFeature(int feature, boolean state) CsvSchema.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 definedCsvParser.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)CsvReadException.getSchema()CsvWriteException.getSchema()CsvMapper.schema()Convenience method that is same asfinal CsvSchemafinal CsvSchemaCsvMapper.schemaFor(tools.jackson.core.type.TypeReference<?> pojoTypeRef) CsvMapper.schemaFor(tools.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.final CsvSchemaCsvMapper.schemaForWithView(Class<?> pojoType, Class<?> view) final CsvSchemaCsvMapper.schemaForWithView(tools.jackson.core.type.TypeReference<?> pojoTypeRef, Class<?> view) CsvMapper.schemaForWithView(tools.jackson.databind.JavaType pojoType, Class<?> view) CsvMapper.schemaWithHeader()Convenience method that is same asMutant factory method that will construct a new instance in which columns are sorted based on names given as argument.CsvSchema.sortedBy(Comparator<String> cmp) Mutant factory method that will construct a new instance in which columns are sorted using givenComparatorover column names.final CsvSchemaCsvMapper.typedSchemaFor(Class<?> pojoType) final CsvSchemaCsvMapper.typedSchemaFor(tools.jackson.core.type.TypeReference<?> pojoTypeRef) CsvMapper.typedSchemaFor(tools.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.final CsvSchemaCsvMapper.typedSchemaForWithView(Class<?> pojoType, Class<?> view) final CsvSchemaCsvMapper.typedSchemaForWithView(tools.jackson.core.type.TypeReference<?> pojoTypeRef, Class<?> view) CsvMapper.typedSchemaForWithView(tools.jackson.databind.JavaType pojoType, Class<?> view) CsvSchema.withAllowComments(boolean state) Method to indicate whether "hash comments" are allowed for document described by this schema.CsvSchema.withAnyPropertyName(String name) CsvSchema.withArrayElementSeparator(String separator) CsvSchema.withColumn(int columnIndex, UnaryOperator<CsvSchema.Column> transformer) Mutant factory method that will try to replace specified column with changed definition (but same name), leaving other columns as-is.CsvSchema.withColumn(String columnName, UnaryOperator<CsvSchema.Column> transformer) Mutant factory method that will try to replace specified column with changed definition (but same name), leaving other columns as-is.CsvSchema.withColumnReordering(boolean state) Returns a clone of this instance by changing or setting the column reordering flagCsvSchema.withColumnSeparator(char sep) 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.withComments()Method to indicate that "hash comments" ARE allowed for document described by this schema.CsvSchema.withEscapeChar(char c) 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.withLineSeparator(String sep) CsvSchema.withNullValue(String nvl) CsvSchema.withoutArrayElementSeparator()CsvSchema.withoutColumns()CsvSchema.withoutComments()Method to indicate that "hash comments" are NOT allowed for document described by this schema.CsvSchema.withoutEscapeChar()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.withoutQuoteChar()CsvSchema.withQuoteChar(char c) CsvSchema.withSkipFirstDataRow(boolean state) CsvSchema.withStrictHeaders(boolean state) Returns a clone of this instance by changing or setting the strict headers flagCsvSchema.withUseHeader(boolean state) Methods in tools.jackson.dataformat.csv with parameters of type CsvSchemaModifier and TypeMethodDescriptionprotected voidCsvParser._setSchema(CsvSchema schema) 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 CsvReadExceptionstatic CsvWriteExceptionCsvWriteException.from(CsvGenerator gen, String msg, CsvSchema schema) 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 tools.jackson.dataformat.csv with type arguments of type CsvSchemaModifier and TypeMethodDescriptionprotected CsvSchemaCsvMapper._schemaFor(tools.jackson.databind.JavaType pojoType, tools.jackson.databind.util.SimpleLookupCache<CsvMapper.ViewKey, CsvSchema> schemas, boolean typed, Class<?> view) Constructors in tools.jackson.dataformat.csv with parameters of type CsvSchemaModifierConstructorDescription"Copy" constructor which creates builder that has settings of given source schemaCsvGenerator(tools.jackson.core.ObjectWriteContext writeCtxt, tools.jackson.core.io.IOContext ioCtxt, int streamWriteFeatures, int csvFeatures, Writer out, CsvSchema schema, CsvCharacterEscapes characterEscapes) CsvParser(tools.jackson.core.ObjectReadContext readCtxt, tools.jackson.core.io.IOContext ioCtxt, int stdFeatures, int csvFeatures, CsvSchema schema, Reader reader) CsvReadException(CsvParser p, String msg, CsvSchema schema) protectedCopy constructor used for creating variants for on/off featuresprotectedCsvSchema(CsvSchema base, CsvSchema.Column[] columns) Copy constructor used for creating variants usingsortedBy()methods.CsvWriteException(CsvGenerator gen, String msg, CsvSchema schema) -
Uses of CsvSchema in tools.jackson.dataformat.csv.impl
Methods in tools.jackson.dataformat.csv.impl with parameters of type CsvSchemaModifier and TypeMethodDescriptionprivate voidCsvEncoder._verifyConfiguration(CsvSchema schema) CsvParserBootstrapper.constructParser(tools.jackson.core.ObjectReadContext readCtxt, int parserFeatures, int csvFeatures, CsvSchema schema) voidCsvEncoder.withSchema(CsvSchema schema) Constructors in tools.jackson.dataformat.csv.impl with parameters of type CsvSchemaModifierConstructorDescriptionCsvDecoder(tools.jackson.core.io.IOContext ctxt, CsvParser owner, Reader r, CsvSchema schema, tools.jackson.core.util.TextBuffer textBuffer, int stdFeatures, int csvFeatures) CsvEncoder(tools.jackson.core.io.IOContext ctxt, int csvFeatures, Writer out, CsvSchema schema, tools.jackson.core.io.CharacterEscapes esc, boolean useFastDoubleWriter) CsvEncoder(CsvEncoder base, CsvSchema newSchema)