Class ImageParser
java.lang.Object
org.apache.juneau.Context
org.apache.juneau.BeanContextable
org.apache.juneau.parser.Parser
org.apache.juneau.parser.InputStreamParser
org.apache.juneau.examples.parser.ImageParser
- All Implemented Interfaces:
AnnotationProvider
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.juneau.parser.InputStreamParser
InputStreamParser.Builder
Nested classes/interfaces inherited from class org.apache.juneau.parser.Parser
Parser.Null
-
Field Summary
Fields inherited from class org.apache.juneau.Context
CONTEXT_APPLY_FILTER
Fields inherited from interface org.apache.juneau.AnnotationProvider
DEFAULT, DISABLE_ANNOTATION_CACHING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
doParse
(ParserSession session, ParserPipe pipe, ClassMeta<T> type) Workhorse method.Methods inherited from class org.apache.juneau.parser.InputStreamParser
create, createSession, getBinaryFormat, getSession, isReaderParser, properties
Methods inherited from class org.apache.juneau.parser.Parser
canHandle, copy, createParserBuilder, getDebugOutputLines, getListener, getMediaTypes, getPrimaryMediaType, isAutoCloseStreams, isStrict, isTrimStrings, isUnbuffered, parse, parse, parse, parse, parse, parse, parseArgs, parseIntoCollection, parseIntoMap
Methods inherited from class org.apache.juneau.BeanContextable
getBeanContext
Methods inherited from class org.apache.juneau.Context
createBuilder, firstAnnotation, firstAnnotation, firstAnnotation, firstAnnotation, firstDeclaredAnnotation, forEachAnnotation, forEachAnnotation, forEachAnnotation, forEachAnnotation, forEachDeclaredAnnotation, hasAnnotation, hasAnnotation, hasAnnotation, hasAnnotation, init, isDebug, lastAnnotation, lastAnnotation, lastAnnotation, lastAnnotation, lastDeclaredAnnotation, toString
-
Constructor Details
-
ImageParser
public ImageParser()
-
-
Method Details
-
doParse
public <T> T doParse(ParserSession session, ParserPipe pipe, ClassMeta<T> type) throws IOException, ParseException Description copied from class:Parser
Workhorse method.Subclasses are expected to either implement this method or
ParserSession.doParse(ParserPipe, ClassMeta)
.- Overrides:
doParse
in classParser
- Type Parameters:
T
- The class type of the object to create.- Parameters:
session
- The current session.pipe
- Where to get the input from.type
- The class type of the object to create. Ifnull orObject.
, object type is based on what's being parsed. For example, when parsing JSON text, it may return aclass String ,Number ,JsonMap , etc...- Returns:
- The parsed object.
- Throws:
IOException
- Thrown by underlying stream.ParseException
- Malformed input encountered.
-