Package org.apache.juneau.parser
Class ReaderParser
java.lang.Object
org.apache.juneau.Context
org.apache.juneau.BeanContextable
org.apache.juneau.parser.Parser
org.apache.juneau.parser.ReaderParser
- All Implemented Interfaces:
- AnnotationProvider
- Direct Known Subclasses:
- CsvParser,- JsonParser,- PlainTextParser,- UonParser,- XmlParser
Subclass of 
Parser for characters-based parsers.
 Description
This class is typically the parent class of all character-based parsers. It has 1 abstract method to implement on the session object...
- parse(ParserSession, ClassMeta) 
Notes:
- This class is thread safe and reusable.
See Also:
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class org.apache.juneau.parser.ParserParser.Null
- 
Field SummaryFields inherited from class org.apache.juneau.ContextCONTEXT_APPLY_FILTERFields inherited from interface org.apache.juneau.AnnotationProviderDEFAULT, DISABLE_ANNOTATION_CACHING
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ReaderParser.Buildercreate()Creates a new builder for this object.Create a session builder based on the properties defined on this context.protected final CharsetFile charset.Returns a session to use for this context.protected final CharsetInput stream charset.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.ParsercanHandle, copy, createParserBuilder, doParse, getDebugOutputLines, getListener, getMediaTypes, getPrimaryMediaType, isAutoCloseStreams, isStrict, isTrimStrings, isUnbuffered, parse, parse, parse, parse, parse, parse, parseArgs, parseIntoCollection, parseIntoMapMethods inherited from class org.apache.juneau.BeanContextablegetBeanContextMethods inherited from class org.apache.juneau.ContextcreateBuilder, firstAnnotation, firstAnnotation, firstAnnotation, firstAnnotation, firstDeclaredAnnotation, forEachAnnotation, forEachAnnotation, forEachAnnotation, forEachAnnotation, forEachDeclaredAnnotation, hasAnnotation, hasAnnotation, hasAnnotation, hasAnnotation, init, isDebug, lastAnnotation, lastAnnotation, lastAnnotation, lastAnnotation, lastDeclaredAnnotation, toString
- 
Constructor Details- 
ReaderParserConstructor.- Parameters:
- builder- The builder for this object.
 
 
- 
- 
Method Details- 
createCreates a new builder for this object.- Returns:
- A new builder.
 
- 
isReaderParserDescription copied from class:ParserReturnstrue if this parser subclasses fromReaderParser.- Overrides:
- isReaderParserin class- Parser
- Returns:
- true if this parser subclasses from- ReaderParser.
 
- 
createSessionDescription copied from class:ContextCreate a session builder based on the properties defined on this context.Use this method for creating sessions where you want to override basic settings. Otherwise, use Context.getSession()directly.- Overrides:
- createSessionin class- Parser
- Returns:
- A new session builder.
 
- 
getSessionDescription copied from class:ContextReturns a session to use for this context.Note that subclasses may opt to return a reusable non-modifiable session. - Overrides:
- getSessionin class- Parser
- Returns:
- A new session object.
 
- 
getFileCharsetFile charset.- Returns:
- The character set to use for reading Files from the file system.
- See Also:
 
- 
getStreamCharsetInput stream charset.- Returns:
- The character set to use for converting InputStreams and byte arrays to readers.
- See Also:
 
- 
propertiesDescription copied from class:ContextReturns the properties on this bean as a map for debugging.- Overrides:
- propertiesin class- Parser
- Returns:
- The properties on this bean as a map for debugging.
 
 
-