Package org.codehaus.jettison.badgerfish
Class BadgerFishXMLStreamWriter
java.lang.Object
org.codehaus.jettison.AbstractXMLStreamWriter
org.codehaus.jettison.badgerfish.BadgerFishXMLStreamWriter
- All Implemented Interfaces:
XMLStreamWriter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate NamespaceContext
private String
private JSONObject
private FastStack
private JSONObject
private Writer
-
Constructor Summary
ConstructorsConstructorDescriptionBadgerFishXMLStreamWriter
(Writer writer) BadgerFishXMLStreamWriter
(Writer writer, JSONObject currentNode) BadgerFishXMLStreamWriter
(Writer writer, JSONObject currentNode, FastStack nodes) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private String
createAttributeKey
(String p, String ns, String local) private String
void
flush()
protected JSONObject
protected FastStack
getNodes()
getProperty
(String arg0) void
setDefaultNamespace
(String arg0) void
setNamespaceContext
(NamespaceContext context) void
void
writeAttribute
(String local, String value) void
writeAttribute
(String ns, String local, String value) void
writeAttribute
(String p, String ns, String local, String value) void
writeCharacters
(String text) void
void
void
void
writeEntityRef
(String arg0) void
writeNamespace
(String prefix, String ns) void
void
writeProcessingInstruction
(String arg0, String arg1) void
void
writeStartElement
(String prefix, String local, String ns) Methods inherited from class org.codehaus.jettison.AbstractXMLStreamWriter
getSerializedAsArrays, isArrayKeysWithSlashAvailable, serializeAsArray, seriliazeAsArray, writeCData, writeCharacters, writeComment, writeDTD, writeEmptyElement, writeEmptyElement, writeEmptyElement, writeStartDocument, writeStartDocument, writeStartElement, writeStartElement
-
Field Details
-
root
-
currentNode
-
writer
-
nodes
-
currentKey
-
ctx
-
-
Constructor Details
-
BadgerFishXMLStreamWriter
-
BadgerFishXMLStreamWriter
-
BadgerFishXMLStreamWriter
-
-
Method Details
-
close
- Throws:
XMLStreamException
-
flush
- Throws:
XMLStreamException
-
getNamespaceContext
-
getPrefix
- Throws:
XMLStreamException
-
getProperty
- Throws:
IllegalArgumentException
-
setDefaultNamespace
- Throws:
XMLStreamException
-
setNamespaceContext
- Throws:
XMLStreamException
-
setPrefix
- Throws:
XMLStreamException
-
writeAttribute
public void writeAttribute(String p, String ns, String local, String value) throws XMLStreamException - Throws:
XMLStreamException
-
createAttributeKey
-
createKey
-
writeAttribute
- Throws:
XMLStreamException
-
writeAttribute
- Throws:
XMLStreamException
-
writeCharacters
- Throws:
XMLStreamException
-
writeDefaultNamespace
- Throws:
XMLStreamException
-
writeEndElement
- Throws:
XMLStreamException
-
writeEntityRef
- Throws:
XMLStreamException
-
writeNamespace
- Throws:
XMLStreamException
-
writeProcessingInstruction
- Throws:
XMLStreamException
-
writeProcessingInstruction
- Throws:
XMLStreamException
-
writeStartDocument
- Throws:
XMLStreamException
-
writeEndDocument
- Specified by:
writeEndDocument
in interfaceXMLStreamWriter
- Overrides:
writeEndDocument
in classAbstractXMLStreamWriter
- Throws:
XMLStreamException
-
writeStartElement
- Throws:
XMLStreamException
-
getCurrentNode
-
getNodes
-