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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.juneau.parser.InputStreamParser
InputStreamParser.BuilderNested classes/interfaces inherited from class org.apache.juneau.parser.Parser
Parser.Null -
Field Summary
Fields inherited from class org.apache.juneau.parser.InputStreamParser
binaryFormatFields inherited from class org.apache.juneau.parser.Parser
autoCloseStreams, consumes, debugOutputLines, listener, strict, trimStrings, unbufferedFields inherited from class org.apache.juneau.BeanContextable
beanContextFields inherited from class org.apache.juneau.Context
CONTEXT_APPLY_FILTER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TdoParse(ParserSession session, ParserPipe pipe, ClassMeta<T> type) Workhorse method.Methods inherited from class org.apache.juneau.parser.InputStreamParser
create, createSession, getBinaryFormat, getSession, isReaderParser, propertiesMethods 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, parseIntoMapMethods inherited from class org.apache.juneau.BeanContextable
getBeanContextMethods inherited from class org.apache.juneau.Context
createBuilder, getAnnotationProvider, init, isDebug, 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:ParserWorkhorse method.Subclasses are expected to either implement this method or
ParserSession.doParse(ParserPipe, ClassMeta).- Overrides:
doParsein 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.
-