public abstract class ReaderParserSession extends ParserSession
This class is NOT thread safe. It is typically discarded after one-time use.
Modifier | Constructor and Description |
---|---|
protected |
ReaderParserSession(ParserSessionArgs args)
Constructor for sessions that don't require context.
|
protected |
ReaderParserSession(ReaderParser ctx,
ParserSessionArgs args)
Create a new session using properties specified in the context.
|
Modifier and Type | Method and Description |
---|---|
ParserPipe |
createPipe(Object input)
Wraps the specified input object into a
ParserPipe object so that it can be easily converted into
a stream or reader. |
protected Charset |
getFileCharset()
Returns the file charset defined on this session.
|
protected Charset |
getStreamCharset()
Returns the stream charset defined on this session.
|
boolean |
isReaderParser()
Returns
ReaderParser . |
ObjectMap |
toMap()
Returns the properties defined on this bean context as a simple map for debugging purposes.
|
cast, convertAttrToType, doParse, doParseIntoCollection, doParseIntoMap, getClassMeta, getDebugOutputLines, getInputAsString, getJavaMethod, getLastLocation, getListener, getListener, getListenerClass, getOuter, getPosition, isAutoCloseStreams, isStrict, isTrimStrings, isUnbuffered, mark, onUnknownProperty, parse, parse, parse, parse, parse, parse, parseArgs, parseIntoCollection, parseIntoMap, setCurrentClass, setCurrentProperty, setName, setParent, setPipe, trim, trim, unmark, unswap
_class, checkForWarnings, convertToMemberType, convertToMemberType, convertToType, convertToType, convertToType, getArgsClassMeta, getBeanClassVisibility, getBeanConstructorVisibility, getBeanDictionaryClasses, getBeanFieldVisibility, getBeanFilters, getBeanMeta, getBeanMethodVisibility, getBeanRegistry, getBeanTypePropertyName, getBeanTypePropertyName, getBpi, getBpro, getBpwo, getBpx, getClassMeta, getClassMeta, getClassMetaForObject, getClassMetaForObject, getExamples, getImplClasses, getLocale, getMediaType, getNotBeanClasses, getNotBeanPackagesNames, getNotBeanPackagesPrefixes, getPojoSwaps, getPropertyNamer, getSchema, getStringBuilder, getTimeZone, getTimeZoneId, isBean, isBean, isBeanMapPutReturnsOldValue, isBeansRequireDefaultConstructor, isBeansRequireSerializable, isBeansRequireSettersForGetters, isBeansRequireSomeProperties, isDebug, isFluentSetters, isIgnoreInvocationExceptionsOnGetters, isIgnoreInvocationExceptionsOnSetters, isIgnorePropertiesWithoutSetters, isIgnoreUnknownBeanProperties, isIgnoreUnknownNullBeanProperties, isSortProperties, isUseEnumNames, isUseInterfaceProxies, isUseJavaBeanIntrospector, newBean, newBean, newBeanMap, newBeanMap, object, returnStringBuilder, string, toArray, toBeanMap, toBeanMap
addToCache, addToCache, addWarning, getClassProperty, getFromCache, getInstanceArrayProperty, getInstanceProperty, getLogger, getProperties, getProperty, getProperty, getProperty, getPropertyKeys, getWarnings, hasProperty, hasWarnings, toString
protected ReaderParserSession(ReaderParser ctx, ParserSessionArgs args)
ctx
- The parser creating this session object.
The parser contains all the configuration settings for this object.args
- Runtime session arguments.protected ReaderParserSession(ParserSessionArgs args)
args
- Runtime session arguments.public final boolean isReaderParser()
ParserSession
ReaderParser
.isReaderParser
in class ParserSession
ReaderParser
.public final ParserPipe createPipe(Object input)
ParserPipe
object so that it can be easily converted into
a stream or reader.createPipe
in class ParserSession
input
- The input.
Reader
CharSequence
InputStream
containing UTF-8 encoded text (or whatever the encoding specified by
ReaderParser.RPARSER_streamCharset
).
byte []
containing UTF-8 encoded text (or whatever the encoding specified by
ReaderParser.RPARSER_streamCharset
).
File
containing system encoded text (or whatever the encoding specified by
ReaderParser.RPARSER_fileCharset
).
ParserPipe
wrapper around the specified input object.protected Charset getFileCharset()
protected Charset getStreamCharset()
public ObjectMap toMap()
Session
toMap
in class ParserSession
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.