Package org.vast.swe.json
Class SWEJsonStreamWriter
java.lang.Object
org.vast.json.JsonStreamWriter
org.vast.swe.json.SWEJsonStreamWriter
- All Implemented Interfaces:
XMLStreamWriter
,JsonConstants
- Direct Known Subclasses:
SMLJsonStreamWriter
-
Nested Class Summary
Nested classes/interfaces inherited from class org.vast.json.JsonStreamWriter
JsonStreamWriter.JsonContext
-
Field Summary
FieldsFields inherited from class org.vast.json.JsonStreamWriter
currentContext, indent, indentSize, markAttributes, writer
Fields inherited from interface org.vast.json.JsonConstants
ATT_PREFIX, OBJECT_TYPE_PROPERTY
-
Constructor Summary
ConstructorsConstructorDescriptionSWEJsonStreamWriter
(com.google.gson.stream.JsonWriter writer) SWEJsonStreamWriter
(OutputStream os, Charset charset) -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
protected static void
addSpecialNamesWithParent
(Map<String, Map<String, String>> nameMaps, String namespaceURI, String parentName, String... names) protected String
getPluralName
(String localName) protected static void
protected boolean
protected boolean
isNumericValue
(String value) protected boolean
isObjectElement
(String namespaceURI, String localName) protected boolean
protected boolean
isSpecialPath
(Map<String, Map<String, String>> nameMaps, String parentName, String namespaceURI, String localName) protected boolean
isValueArray
(String namespaceURI, String localName) Methods inherited from class org.vast.json.JsonStreamWriter
beginArray, close, closeArray, endArray, flush, getNamespaceContext, getPrefix, getProperty, popContext, prepareAppendToObject, pushContext, resetContext, setDefaultNamespace, setNamespaceContext, setPrefix, writeAttribute, writeAttribute, writeAttribute, writeCData, writeCharacters, writeCharacters, writeComment, writeDefaultNamespace, writeDTD, writeEmptyElement, writeEmptyElement, writeEmptyElement, writeEndDocument, writeEndElement, writeEntityRef, writeNamespace, writeProcessingInstruction, writeProcessingInstruction, writeStartDocument, writeStartDocument, writeStartDocument, writeStartElement, writeStartElement, writeStartElement, writeValue, writeValue
-
Field Details
-
NO_PARENT
- See Also:
-
NO_NS
- See Also:
-
ARRAYS
-
NUMERICS
-
VALUE_ARRAYS
-
-
Constructor Details
-
SWEJsonStreamWriter
-
SWEJsonStreamWriter
public SWEJsonStreamWriter(com.google.gson.stream.JsonWriter writer)
-
-
Method Details
-
initSpecialNames
protected static void initSpecialNames() -
addSpecialNames
-
addSpecialNamesWithParent
-
isSpecialName
-
isSpecialPath
-
isArray
- Overrides:
isArray
in classJsonStreamWriter
-
getPluralName
- Overrides:
getPluralName
in classJsonStreamWriter
-
isValueArray
- Overrides:
isValueArray
in classJsonStreamWriter
-
isNumericValue
- Overrides:
isNumericValue
in classJsonStreamWriter
-
isObjectElement
- Overrides:
isObjectElement
in classJsonStreamWriter
-