Package org.glassfish.hk2.json.internal
Class JsonParser
java.lang.Object
org.glassfish.hk2.json.internal.JsonParser
- All Implemented Interfaces:
XmlServiceParser
@Singleton
@Named("JsonService")
@Visibility(LOCAL)
public class JsonParser
extends Object
implements XmlServiceParser
- Author:
- jwells
-
Field Summary
Fields inherited from interface org.glassfish.hk2.xml.spi.XmlServiceParser
DEFAULT_PARSING_SERVICE, STREAM_PARSING_SERVICE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> voidmarshal(OutputStream outputStream, XmlRootHandle<T> rootHandle, Map<String, Object> options) <T> TparseRoot(Model rootModel, InputStream input, jakarta.xml.bind.Unmarshaller.Listener listener, Map<String, Object> options) <T> TparseRoot(Model rootModel, URI location, jakarta.xml.bind.Unmarshaller.Listener listener, Map<String, Object> options)
-
Constructor Details
-
JsonParser
public JsonParser()
-
-
Method Details
-
parseRoot
public <T> T parseRoot(Model rootModel, URI location, jakarta.xml.bind.Unmarshaller.Listener listener, Map<String, Object> options) throws Exception- Specified by:
parseRootin interfaceXmlServiceParser- Throws:
Exception
-
parseRoot
public <T> T parseRoot(Model rootModel, InputStream input, jakarta.xml.bind.Unmarshaller.Listener listener, Map<String, Object> options) throws Exception- Specified by:
parseRootin interfaceXmlServiceParser- Throws:
Exception
-
getPreGenerationRequirement
- Specified by:
getPreGenerationRequirementin interfaceXmlServiceParser
-
marshal
public <T> void marshal(OutputStream outputStream, XmlRootHandle<T> rootHandle, Map<String, Object> options) throws IOException- Specified by:
marshalin interfaceXmlServiceParser- Throws:
IOException
-