public class AtomDualParser extends java.lang.Object implements InputParser<IAtom>
InputParser implementation
that is capable of parsing into classes that use the old or new data
model. The actual parsing is done by delegating to an instance of the
AtomDataParser or ElementParser class.| Constructor and Description |
|---|
AtomDualParser() |
| Modifier and Type | Method and Description |
|---|---|
AltFormat |
getAltFormat()
Returns the alternate representation format that is expected as input to
the parser.
|
java.lang.Class<IAtom> |
getResultType()
Returns the target type that is populated by the parser from the input
stream.
|
<R extends IAtom> |
parse(ParseSource parseSource,
InputProperties inProps,
java.lang.Class<R> resultClass)
Parses data in the supported representation format from the input stream
based upon the provided input properties into the provided target object.
|
public AltFormat getAltFormat()
InputParsergetAltFormat in interface InputParser<IAtom>public java.lang.Class<IAtom> getResultType()
InputParsergetResultType in interface InputParser<IAtom>public <R extends IAtom> R parse(ParseSource parseSource, InputProperties inProps, java.lang.Class<R> resultClass) throws java.io.IOException, ServiceException
InputParserparse in interface InputParser<IAtom>parseSource - providing the source of the datainProps - properties describing the input dataresultClass - specific type of result expected from the parsejava.io.IOExceptionServiceException