Package org.apache.juneau.marshall.csv
Class CsvParser.Builder
java.lang.Object
org.apache.juneau.marshall.Context.Builder<SELF>
org.apache.juneau.marshall.MarshallingContextable.Builder<SELF>
org.apache.juneau.marshall.parser.Parser.Builder<SELF>
org.apache.juneau.marshall.parser.ReaderParser.Builder<CsvParser.Builder>
org.apache.juneau.marshall.csv.CsvParser.Builder
- Enclosing class:
- CsvParser
Builder class.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder()Constructor, default settings.protectedCopy constructor.protectedBuilder(CsvParser.Builder copyFrom) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionallowNestedStructures(boolean value) Enables parsing of inline{key:val}and[val;val]notation in cells.build()Build the object.Format for parsingbyte[]arrays from CSV cells.copy()Copy creator.hashKey()Returns the hashkey of this builder.String that denotes null when parsing.Methods inherited from class org.apache.juneau.marshall.parser.ReaderParser.Builder
streamCharsetMethods inherited from class org.apache.juneau.marshall.parser.Parser.Builder
autoCloseStreams, autoCloseStreams, consumes, debugOutputLines, getConsumes, getNulls, listener, nulls, trimStrings, trimStrings, unbuffered, unbufferedMethods inherited from class org.apache.juneau.marshall.MarshallingContextable.Builder
activeView, annotations, beanClassVisibility, beanConstructorVisibility, beanDictionary, beanFieldVisibility, beanInterceptor, beanMapPutReturnsOldValue, beanMethodVisibility, beanProperties, beanProperties, beanProperties, beanPropertiesExcludes, beanPropertiesExcludes, beanPropertiesExcludes, beanPropertiesReadOnly, beanPropertiesReadOnly, beanPropertiesReadOnly, beanPropertiesWriteOnly, beanPropertiesWriteOnly, beanPropertiesWriteOnly, beansRequireDefaultConstructor, beansRequireSerializable, beansRequireSettersForGetters, bigNumberFormat, binaryFormat, bitSetFormat, booleanFormat, calendarFormat, classFormat, classLoader, currencyFormat, dateFormat, debug, dictionaryOn, disableBeansRequireSomeProperties, disableDefaultViewInclusion, disableIgnoreMissingSetters, disableIgnoreTransientFields, disableIgnoreUnknownNullBeanProperties, disableInterfaceProxies, durationFormat, enumFormat, example, example, findFluentSetters, findFluentSetters, floatFormat, ignoreInvocationExceptionsOnGetters, ignoreInvocationExceptionsOnSetters, ignoreUnknownBeanProperties, ignoreUnknownEnumValues, implClass, implClasses, interfaceClass, interfaces, locale, localeFormat, marshallingContext, marshallingContext, marshallingContext, marshallingContext, mediaType, notBeanClasses, notBeanPackages, periodFormat, propertyNamer, propertyNamer, recordComponentOrder, stopClass, swap, swap, swaps, swaps, temporalFormat, timeZone, timeZoneFormat, typeName, typePropertyName, typePropertyName, unsortedProperties, unsortedProperties, useJavaBeanIntrospector, uuidFormat, validateSchema, validateSchemaMethods inherited from class org.apache.juneau.marshall.Context.Builder
annotations, apply, applyAnnotations, applyAnnotations, asSubtype, build, cache, canApply, copyOrNull, debug, getApplied, getType, impl, isDebug, registerBuilders, self, type
-
Constructor Details
-
Builder
protected Builder()Constructor, default settings. -
Builder
Copy constructor.- Parameters:
copyFrom- The builder to copy from.
Cannot benull .
-
Builder
Copy constructor.- Parameters:
copyFrom- The bean to copy from.
Cannot benull .
-
-
Method Details
-
nullValue
String that denotes null when parsing. Must match the serializer's nullValue.- Parameters:
value- The null marker string.- Returns:
- This object.
-
allowNestedStructures
Enables parsing of inline{key:val}and[val;val]notation in cells.- Parameters:
value- Whether to allow nested structures.- Returns:
- This object.
-
byteArrayFormat
Format for parsingbyte[]arrays from CSV cells.Must match the format used by the serializer. Default is
CsvByteArrayCellFormat.BASE64.- Parameters:
value- The format to use.- Returns:
- This object.
-
hashKey
Description copied from class:Context.BuilderReturns the hashkey of this builder.Used to return previously instantiated context beans that have matching hashkeys. The
HashKeyobject is suitable for use as a hashmap key of a map of context beans. A context bean is considered equivalent if theHashKey.equals(Object)method is the same.- Overrides:
hashKeyin classReaderParser.Builder<CsvParser.Builder>- Returns:
- The hashkey of this builder.
-
build
Description copied from class:Context.BuilderBuild the object.- Overrides:
buildin classReaderParser.Builder<CsvParser.Builder>- Returns:
- The built object.
-
copy
Description copied from class:Context.BuilderCopy creator.- Specified by:
copyin classReaderParser.Builder<CsvParser.Builder>- Returns:
- A new mutable copy of this builder.
-