Package org.vast.swe.json
Class SWEJsonStreamReader
java.lang.Object
org.vast.json.JsonStreamReader
org.vast.swe.json.SWEJsonStreamReader
- All Implemented Interfaces:
XMLStreamConstants
,XMLStreamReader
,JsonConstants
- Direct Known Subclasses:
SMLJsonStreamReader
-
Nested Class Summary
Nested classes/interfaces inherited from class org.vast.json.JsonStreamReader
JsonStreamReader.JsonContext
-
Field Summary
FieldsFields inherited from class org.vast.json.JsonStreamReader
attNames, attValues, currentContext, eventType, inputEncoding, nextName, reader, valueBuilder
Fields inherited from interface org.vast.json.JsonConstants
ATT_PREFIX, OBJECT_TYPE_PROPERTY
Fields inherited from interface javax.xml.stream.XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
-
Constructor Summary
ConstructorsConstructorDescriptionSWEJsonStreamReader
(com.google.gson.stream.JsonReader reader) SWEJsonStreamReader
(InputStream is, Charset charset) -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
addSpecialNames
(HashSet<String> nameList, String... names) protected static void
addSpecialNamesWithParent
(Map<String, Map<String, String>> nameMaps, String parentName, String... names) protected static void
protected boolean
isInlineValue
(String name) protected boolean
isSpecialName
(Map<String, String> nameMap, String name) protected boolean
protected boolean
isValueArray
(String name) protected boolean
isXmlAttribute
(String name) Methods inherited from class org.vast.json.JsonStreamReader
clearContext, close, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getElementText, getEncoding, getEventType, getLocalName, getLocation, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getPIData, getPITarget, getPrefix, getProperty, getSingularName, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, next, nextTag, popContext, pushContext, require, standaloneSet
-
Field Details
-
NO_PARENT
- See Also:
-
XML_ATT_NAMES
-
INLINE_VALUES_NAMES
-
VALUE_ARRAYS
-
-
Constructor Details
-
SWEJsonStreamReader
-
SWEJsonStreamReader
public SWEJsonStreamReader(com.google.gson.stream.JsonReader reader)
-
-
Method Details
-
initSpecialNames
protected static void initSpecialNames() -
addSpecialNames
-
addSpecialNamesWithParent
-
isXmlAttribute
- Overrides:
isXmlAttribute
in classJsonStreamReader
-
isInlineValue
- Overrides:
isInlineValue
in classJsonStreamReader
-
isSpecialName
-
isSpecialPath
-
isValueArray
- Overrides:
isValueArray
in classJsonStreamReader
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceXMLStreamReader
- Overrides:
getNamespaceURI
in classJsonStreamReader
-