Package org.apache.juneau.parser
Class ReaderParserSession
java.lang.Object
org.apache.juneau.ContextSession
org.apache.juneau.BeanSession
org.apache.juneau.parser.ParserSession
org.apache.juneau.parser.ReaderParserSession
- Direct Known Subclasses:
- CsvParserSession,- JsonParserSession,- PlainTextParserSession,- UonParserSession,- XmlParserSession
Subclass of parser session objects for character-based parsers.
 
Notes:
- This class is not thread safe and is typically discarded after one use.
See Also:
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedConstructor.
- 
Method SummaryModifier and TypeMethodDescriptionstatic ReaderParserSession.Buildercreate(ReaderParser ctx) Creates a new builder for this object.final ParserPipecreatePipe(Object input) Wraps the specified input object into aParserPipeobject so that it can be easily converted into a stream or reader.Returns the file charset defined on this session.Returns the stream charset defined on this session.final booleanReturnstrue if this parser subclasses fromReaderParser.protected JsonMapReturns the properties on this bean as a map for debugging.Methods inherited from class org.apache.juneau.parser.ParserSessioncast, convertAttrToType, create, doParse, doParseIntoCollection, doParseIntoMap, getClassMeta, getDebugOutputLines, getInputAsString, getJavaMethod, getLastLocation, getListener, getListener, getListenerClass, getOuter, getPosition, getSchema, getStringBuilder, isAutoCloseStreams, isStrict, isTrimStrings, isUnbuffered, mark, onBeanSetterException, onUnknownProperty, parse, parse, parse, parse, parse, parse, parseArgs, parseIntoCollection, parseIntoMap, returnStringBuilder, setCurrentClass, setCurrentProperty, setName, setParent, setPipe, trim, trim, unmark, unswapMethods inherited from class org.apache.juneau.BeanSession_class, addWarning, convertToMemberType, convertToMemberType, convertToType, convertToType, convertToType, create, getArgsClassMeta, getBeanClassVisibility, getBeanConstructorVisibility, getBeanDictionary, getBeanFieldVisibility, getBeanMeta, getBeanMethodVisibility, getBeanRegistry, getBeanTypePropertyName, getBeanTypePropertyName, getClassMeta, getClassMeta, getClassMetaForObject, getClassMetaForObject, getLocale, getMediaType, getNamePropertyName, getNotBeanClasses, getNotBeanPackagesNames, getNotBeanPackagesPrefixes, getPropertyNamer, getSwaps, getTimeZone, getTimeZoneId, isBean, isBean, isBeanMapPutReturnsOldValue, isBeansRequireDefaultConstructor, isBeansRequireSerializable, isBeansRequireSettersForGetters, isBeansRequireSomeProperties, isFindFluentSetters, isIgnoreInvocationExceptionsOnGetters, isIgnoreInvocationExceptionsOnSetters, isIgnoreMissingSetters, isIgnoreUnknownBeanProperties, isIgnoreUnknownNullBeanProperties, isSortProperties, isUseEnumNames, isUseInterfaceProxies, isUseJavaBeanIntrospector, newBean, newBean, newBeanMap, newBeanMap, newGenericMap, object, string, toArray, toBeanMap, toBeanMap, toBeanMapMethods inherited from class org.apache.juneau.ContextSessioncheckForWarnings, getContext, getSessionProperties, getWarnings, isDebug, toString
- 
Constructor Details- 
ReaderParserSessionConstructor.- Parameters:
- builder- The builder for this object.
 
 
- 
- 
Method Details- 
createCreates a new builder for this object.- Parameters:
- ctx- The context creating this session.
- Returns:
- A new builder.
 
- 
isReaderParserDescription copied from class:ParserSessionReturnstrue if this parser subclasses fromReaderParser.- Overrides:
- isReaderParserin class- ParserSession
- Returns:
- true if this parser subclasses from- ReaderParser.
 
- 
createPipeWraps the specified input object into aParserPipeobject so that it can be easily converted into a stream or reader.- Overrides:
- createPipein class- ParserSession
- Parameters:
- input- The input.
 This can be any of the following types:- null 
- Reader
- CharSequence
- InputStreamcontaining UTF-8 encoded text (or whatever the encoding specified by- ReaderParser.Builder.streamCharset(Charset)).
- byte []- ReaderParser.Builder.streamCharset(Charset)).
- Filecontaining system encoded text (or whatever the encoding specified by- ReaderParser.Builder.streamCharset(Charset)).
 
- Returns:
- A new ParserPipewrapper around the specified input object.
 
- 
getFileCharsetReturns the file charset defined on this session.- Returns:
- the file charset defined on this session.
 
- 
getStreamCharsetReturns the stream charset defined on this session.- Returns:
- the stream charset defined on this session.
 
- 
propertiesDescription copied from class:ContextSessionReturns the properties on this bean as a map for debugging.- Overrides:
- propertiesin class- ParserSession
- Returns:
- The properties on this bean as a map for debugging.
 
 
-