@Singleton @Visibility(value=LOCAL) @Named(value="StreamXmlParsingService") @Rank(value=1) public class DomXmlParser extends Object implements XmlServiceParser
DEFAULT_PARSING_SERVICE, STREAM_PARSING_SERVICE| Constructor and Description |
|---|
DomXmlParser() |
| Modifier and Type | Method and Description |
|---|---|
PreGenerationRequirement |
getPreGenerationRequirement()
This tells the system whether or not it needs to pregenerate all proxies
prior to parsing a document or if the proxies can be generated lazily
|
<T> void |
marshal(OutputStream outputStream,
XmlRootHandle<T> root,
Map<String,Object> options)
Marshalls this tree into the given stream.
|
<T> T |
parseRoot(Model rootModel,
InputStream input,
Unmarshaller.Listener listener,
Map<String,Object> options)
This method must return an instance of the given class as the root of
an XML graph
|
<T> T |
parseRoot(Model rootModel,
URI location,
Unmarshaller.Listener listener,
Map<String,Object> options)
This method must return an instance of the given class as the root of
an XML graph
|
public <T> T parseRoot(Model rootModel, URI location, Unmarshaller.Listener listener, Map<String,Object> options) throws Exception
XmlServiceParserparseRoot in interface XmlServiceParserrootModel - The Model object of the root to be parsedlocation - The location of the file to parselistener - A listener that must be called via the contract of Unmarshaller.Listeneroptions - optional (possibly null) options from the callerExceptionpublic <T> T parseRoot(Model rootModel, InputStream input, Unmarshaller.Listener listener, Map<String,Object> options) throws Exception
XmlServiceParserparseRoot in interface XmlServiceParserrootModel - The Model object of the root to be parsedinput - A non-null input stream. This stream will NOT be closed by this methodlistener - A listener that must be called via the contract of Unmarshaller.Listeneroptions - optional (possibly null) options from the callerExceptionpublic PreGenerationRequirement getPreGenerationRequirement()
XmlServiceParsergetPreGenerationRequirement in interface XmlServiceParserpublic <T> void marshal(OutputStream outputStream, XmlRootHandle<T> root, Map<String,Object> options) throws IOException
XmlServiceParsermarshal in interface XmlServiceParseroutputStream - A non-closed output stream. This method will
not close the output streamroot - The root of the tree to marshalloptions - optional (possibly null) options from the callerIOException - On any exception that might happenCopyright © 2009–2019 Oracle Corporation. All rights reserved.