Class ReaderParser.Builder<SELF extends ReaderParser.Builder<SELF>>
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<SELF>
- Direct Known Subclasses:
CsvParser.Builder,HjsonParser.Builder,HoconParser.Builder,IniParser.Builder,JsonParser.Builder,MarkdownParser.Builder,PlainTextParser.Builder,RdfParser.Builder,ReaderParser.DefaultBuilder,SseParser.Builder,TomlParser.Builder,UonParser.Builder,XmlParser.Builder,YamlParser.Builder
- Enclosing class:
- ReaderParser
public abstract static class ReaderParser.Builder<SELF extends ReaderParser.Builder<SELF>>
extends Parser.Builder<SELF>
Builder class.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder()Constructor, default settings.protectedBuilder(ReaderParser copyFrom) Copy constructor.protectedBuilder(ReaderParser.Builder<?> copyFrom) Copy constructor. -
Method Summary
Methods 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
-
build
Description copied from class:Context.BuilderBuild the object.- Overrides:
buildin classParser.Builder<SELF extends ReaderParser.Builder<SELF>>- Returns:
- The built object.
-
copy
Description copied from class:Context.BuilderCopy creator.- Specified by:
copyin classParser.Builder<SELF extends ReaderParser.Builder<SELF>>- Returns:
- A new mutable copy of this builder.
-
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 classParser.Builder<SELF extends ReaderParser.Builder<SELF>>- Returns:
- The hashkey of this builder.
-
streamCharset
Input stream charset.The character set to use for converting
InputStreams and byte arrays to readers.Used when passing in input streams and byte arrays to
Parser.read(Object, Class).Example:
// Create a parser that reads UTF-8 files. ReaderParserparser = JsonParser .create () .streamCharset(Charset.forName ("UTF-8" )) .build();// Use it to read a UTF-8 encoded input stream. MyBeanmyBean =parser .read(new FileInputStream("MyBean.txt" ), MyBean.class );- Parameters:
value- The new value for this property.
The default value is"UTF-8" .
Can benull (defaults to UTF-8).- Returns:
- This object.
-