ObjectMapper, with extended functionality to
produce CsvSchema instances out of POJOs.
| Modifier and Type | Class and Description |
|---|---|
| public static class | CsvMapper.
Base implementation for "Vanilla" |
| public static class | CsvMapper.
Simple class in order to create a map key based on |
| Modifier and Type | Field and Description |
|---|---|
| protected final LRUMap | _typedSchemas
Simple caching for schema instances, given that they are relatively expensive to construct; this one is for typed schemas |
| protected final LRUMap | _untypedSchemas
Simple caching for schema instances, given that they are relatively expensive to construct; this one is for "loose" (non-typed) schemas |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | _addSchemaProperties(CsvSchema.
|
| protected CsvSchema. | |
| protected boolean | |
| protected CsvSchema | |
| protected CsvSchema | |
| public static CsvMapper. | |
| public static CsvMapper. | |
| public CsvMapper | |
| public CsvMapper | |
| public CsvMapper | copy()
Overrides com. Method for creating a new |
| public static CsvMapper. | |
| public CsvMapper | |
| public CsvMapper | |
| public CsvMapper | |
| public CsvMapper | |
| public CsvFactory | getFactory()
Overrides com. Overridden with more specific type, since factory we have
is always of type |
| public ObjectReader | readerWithSchemaFor(Class<?>
Type used both for data-binding (result type) and for
schema introspection. pojoType)Note must NOT be an array or Collection type, since these only make sense for data-binding (like arrays of objects to bind), but not for schema construction (no CSV types can be mapped to arrays or Collections) Convenience method which is functionally equivalent to: reader(pojoType).withSchema(schemaFor(pojoType)); |
| public ObjectReader | readerWithTypedSchemaFor(Class<?> pojoType)
Convenience method which is functionally equivalent to: reader(pojoType).withSchema(typedSchemaFor(pojoType)); |
| public CsvSchema | |
| public CsvSchema | |
| public final CsvSchema | |
| public final CsvSchema | |
| public CsvSchema | |
| public final CsvSchema | |
| public final CsvSchema | |
| public CsvSchema | |
| public CsvSchema | typedSchemaFor(JavaType pojoType)
Method that can be used to determine a CSV schema to use for given POJO type, using default serialization settings including ordering. |
| public final CsvSchema | |
| public final CsvSchema | |
| public CsvSchema | |
| public final CsvSchema | |
| public final CsvSchema | |
| public ObjectWriter | writerWithSchemaFor(Class<?>
Type used both for data-binding (result type) and for
schema introspection. pojoType)Note must NOT be an array or Collection type, since these only make sense for data-binding (like arrays of objects to bind), but not for schema construction (no root-level CSV types can be mapped to arrays or Collections) Convenience method which is functionally equivalent to: writer(pojoType).with(schemaFor(pojoType)); |
| public ObjectWriter | writerWithTypedSchemaFor(Class<?> pojoType)
Convenience method which is functionally equivalent to: writer(pojoType).with(typedSchemaFor(pojoType)); |