Class JsonParserReader
- java.lang.Object
-
- org.eclipse.persistence.internal.oxm.record.XMLReader
-
- org.eclipse.persistence.internal.oxm.record.XMLReaderAdapter
-
- org.eclipse.persistence.internal.oxm.record.json.JsonParserReader
-
- All Implemented Interfaces:
org.xml.sax.XMLReader
public final class JsonParserReader extends XMLReaderAdapter
Reader for JSR-353 stream (StAX) parser. Could be instantiated withJsonParserReader.JsonParserReaderBuilder.build()
;
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JsonParserReader.JsonParserReaderBuilder
Builder for JsonParserReader-
Nested classes/interfaces inherited from class org.eclipse.persistence.internal.oxm.record.XMLReaderAdapter
XMLReaderAdapter.Attribute, XMLReaderAdapter.ExtendedContentHandlerAdapter, XMLReaderAdapter.IndexedAttributeList
-
Nested classes/interfaces inherited from class org.eclipse.persistence.internal.oxm.record.XMLReader
XMLReader.ValidatingContentHandler
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.internal.oxm.record.XMLReaderAdapter
contentHandler, lexicalHandler
-
Fields inherited from class org.eclipse.persistence.internal.oxm.record.XMLReader
locator, NAMESPACE_PREFIXES_FEATURE, REPORT_IGNORED_ELEMENT_CONTENT_WHITESPACE_FEATURE, validatingContentHandler
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
convertValueBasedOnSchemaType(Field xmlField, java.lang.Object value, ConversionManager conversionManager, AbstractUnmarshalRecord record)
INTERNAL:ExtendedContentHandler
getContentHandler()
org.xml.sax.ErrorHandler
getErrorHandler()
MediaType
getMediaType()
INTERNAL:char
getNamespaceSeparator()
INTERNAL: The character used to separate the prefix and uri portions when namespaces are presentboolean
isInCollection()
boolean
isNamespaceAware()
INTERNAL: Determine if namespaces will be considered during marshal/unmarshal operations.boolean
isNullRepresentedByXsiNil(AbstractNullPolicy nullPolicy)
void
parse(java.lang.String systemId)
void
parse(org.xml.sax.InputSource input)
void
setContentHandler(org.xml.sax.ContentHandler contentHandler)
-
Methods inherited from class org.eclipse.persistence.internal.oxm.record.XMLReaderAdapter
getDTDHandler, getEntityResolver, getFeature, getLexicalHandler, getProperty, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setLexicalHandler, setProperty
-
Methods inherited from class org.eclipse.persistence.internal.oxm.record.XMLReader
getCurrentObject, getLocator, getValidatorHandler, getValue, isNullRecord, newObjectEvent, setLocator, setNamespaceAware, setNamespaceSeparator, setValidatorHandler
-
-
-
-
Method Detail
-
parse
public void parse(org.xml.sax.InputSource input) throws java.io.IOException, org.xml.sax.SAXException
-
parse
public void parse(java.lang.String systemId)
- Specified by:
parse
in interfaceorg.xml.sax.XMLReader
- Overrides:
parse
in classXMLReaderAdapter
-
isNullRepresentedByXsiNil
public boolean isNullRepresentedByXsiNil(AbstractNullPolicy nullPolicy)
- Overrides:
isNullRepresentedByXsiNil
in classXMLReader
-
convertValueBasedOnSchemaType
public java.lang.Object convertValueBasedOnSchemaType(Field xmlField, java.lang.Object value, ConversionManager conversionManager, AbstractUnmarshalRecord record)
Description copied from class:XMLReader
INTERNAL:- Overrides:
convertValueBasedOnSchemaType
in classXMLReader
-
getNamespaceSeparator
public char getNamespaceSeparator()
Description copied from class:XMLReader
INTERNAL: The character used to separate the prefix and uri portions when namespaces are present- Overrides:
getNamespaceSeparator
in classXMLReader
-
getErrorHandler
public org.xml.sax.ErrorHandler getErrorHandler()
- Specified by:
getErrorHandler
in interfaceorg.xml.sax.XMLReader
- Overrides:
getErrorHandler
in classXMLReaderAdapter
-
getContentHandler
public ExtendedContentHandler getContentHandler()
- Specified by:
getContentHandler
in interfaceorg.xml.sax.XMLReader
- Overrides:
getContentHandler
in classXMLReaderAdapter
-
setContentHandler
public void setContentHandler(org.xml.sax.ContentHandler contentHandler)
- Specified by:
setContentHandler
in interfaceorg.xml.sax.XMLReader
- Overrides:
setContentHandler
in classXMLReaderAdapter
-
isInCollection
public boolean isInCollection()
- Overrides:
isInCollection
in classXMLReader
-
getMediaType
public MediaType getMediaType()
Description copied from class:XMLReader
INTERNAL:- Overrides:
getMediaType
in classXMLReader
- Returns:
- The MediaType associated with this reader
-
isNamespaceAware
public boolean isNamespaceAware()
Description copied from class:XMLReader
INTERNAL: Determine if namespaces will be considered during marshal/unmarshal operations.- Overrides:
isNamespaceAware
in classXMLReader
-
-