@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,
Map<String,Object> options) |
<T> T |
parseRoot(Model rootModel,
InputStream input,
Unmarshaller.Listener listener,
Map<String,Object> options) |
<T> T |
parseRoot(Model rootModel,
URI location,
Unmarshaller.Listener listener,
Map<String,Object> options) |
public <T> T parseRoot(Model rootModel, URI location, Unmarshaller.Listener listener, Map<String,Object> options) throws Exception
parseRoot in interface XmlServiceParserExceptionpublic <T> T parseRoot(Model rootModel, InputStream input, Unmarshaller.Listener listener, Map<String,Object> options) throws Exception
parseRoot in interface XmlServiceParserExceptionpublic PreGenerationRequirement getPreGenerationRequirement()
getPreGenerationRequirement in interface XmlServiceParserpublic <T> void marshal(OutputStream outputStream, XmlRootHandle<T> rootHandle, Map<String,Object> options) throws IOException
marshal in interface XmlServiceParserIOExceptionCopyright © 2009–2018 Oracle Corporation. All rights reserved.