Class ReaderParserSession.Builder<SELF extends ReaderParserSession.Builder<SELF>>
java.lang.Object
org.apache.juneau.marshall.ContextSession.Builder<SELF>
org.apache.juneau.marshall.MarshallingSession.Builder<SELF>
org.apache.juneau.marshall.parser.ParserSession.Builder<SELF>
org.apache.juneau.marshall.parser.ReaderParserSession.Builder<SELF>
- Direct Known Subclasses:
CsvParserSession.Builder,HjsonParserSession.Builder,HoconParserSession.Builder,IniParserSession.Builder,JsonParserSession.Builder,MarkdownParserSession.Builder,PlainTextParserSession.Builder,RdfParserSession.Builder,ReaderParserSession.DefaultBuilder,SseParserSession.Builder,TomlParserSession.Builder,UonParserSession.Builder,XmlParserSession.Builder,YamlParserSession.Builder
- Enclosing class:
- ReaderParserSession
public abstract static class ReaderParserSession.Builder<SELF extends ReaderParserSession.Builder<SELF>>
extends ParserSession.Builder<SELF>
Builder class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the object.Adds a property to this session.streamCharset(Charset value) Input stream charset.Methods inherited from class org.apache.juneau.marshall.parser.ParserSession.Builder
javaMethod, maxParseDepth, nulls, outer, schema, schemaDefault, trimStringsMethods inherited from class org.apache.juneau.marshall.MarshallingSession.Builder
activeView, locale, mediaType, mediaTypeDefault, timeZone, timeZoneDefaultMethods inherited from class org.apache.juneau.marshall.ContextSession.Builder
apply, cvt, debug, properties, self, unmodifiable
-
Constructor Details
-
Builder
Constructor- Parameters:
ctx- The context creating this session.
Cannot benull .
-
-
Method Details
-
build
Description copied from class:MarshallingSession.BuilderBuild the object.- Overrides:
buildin classParserSession.Builder<SELF extends ReaderParserSession.Builder<SELF>>- Returns:
- The built object.
-
property
Description copied from class:ContextSession.BuilderAdds a property to this session.If the key matches a known session property (e.g.
"debug" or"ContextSession.debug" ), the value is converted viaBasicConverterand routed to the corresponding typed setter. Unknown keys are stored in the raw session properties map.- Overrides:
propertyin classParserSession.Builder<SELF extends ReaderParserSession.Builder<SELF>>- Parameters:
key- The property key.
Cannot benull .value- The property value.
Can benull (resets typed properties to their default; removes raw properties).- Returns:
- This object.
-
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).If not specified, defaults to UTF-8.
- Parameters:
value- The new property value.
Can benull (defaults to UTF-8).- Returns:
- This object.
-