@Singleton @Named(value="JsonService") @Visibility(value=LOCAL) public class JsonParser extends Object implements XmlServiceParser
DEFAULT_PARSING_SERVICE, STREAM_PARSING_SERVICE| Constructor and Description |
|---|
JsonParser() |
| Modifier and Type | Method and Description |
|---|---|
PreGenerationRequirement |
getPreGenerationRequirement() |
<T> void |
marshal(OutputStream outputStream,
XmlRootHandle<T> rootHandle) |
<T> T |
parseRoot(Model rootModel,
InputStream input,
Unmarshaller.Listener listener) |
<T> T |
parseRoot(Model rootModel,
URI location,
Unmarshaller.Listener listener) |
public <T> T parseRoot(Model rootModel, URI location, Unmarshaller.Listener listener) throws Exception
parseRoot in interface XmlServiceParserExceptionpublic <T> T parseRoot(Model rootModel, InputStream input, Unmarshaller.Listener listener) throws Exception
parseRoot in interface XmlServiceParserExceptionpublic PreGenerationRequirement getPreGenerationRequirement()
getPreGenerationRequirement in interface XmlServiceParserpublic <T> void marshal(OutputStream outputStream, XmlRootHandle<T> rootHandle) throws IOException
marshal in interface XmlServiceParserIOExceptionCopyright © 2009-2017 Oracle Corporation. All Rights Reserved.