Package org.codehaus.jettison.badgerfish
Class BadgerFishXMLStreamWriter
- java.lang.Object
-
- org.codehaus.jettison.AbstractXMLStreamWriter
-
- org.codehaus.jettison.badgerfish.BadgerFishXMLStreamWriter
-
- All Implemented Interfaces:
XMLStreamWriter
public class BadgerFishXMLStreamWriter extends AbstractXMLStreamWriter
-
-
Constructor Summary
Constructors Constructor Description BadgerFishXMLStreamWriter(Writer writer)
BadgerFishXMLStreamWriter(Writer writer, JSONObject currentNode)
BadgerFishXMLStreamWriter(Writer writer, JSONObject currentNode, FastStack nodes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
flush()
protected JSONObject
getCurrentNode()
NamespaceContext
getNamespaceContext()
protected FastStack
getNodes()
String
getPrefix(String ns)
Object
getProperty(String arg0)
void
setDefaultNamespace(String arg0)
void
setNamespaceContext(NamespaceContext context)
void
setPrefix(String arg0, String arg1)
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
writeDefaultNamespace(String ns)
void
writeEndDocument()
void
writeEndElement()
void
writeEntityRef(String arg0)
void
writeNamespace(String prefix, String ns)
void
writeProcessingInstruction(String arg0)
void
writeProcessingInstruction(String arg0, String arg1)
void
writeStartDocument()
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
-
-
-
-
Constructor Detail
-
BadgerFishXMLStreamWriter
public BadgerFishXMLStreamWriter(Writer writer)
-
BadgerFishXMLStreamWriter
public BadgerFishXMLStreamWriter(Writer writer, JSONObject currentNode)
-
BadgerFishXMLStreamWriter
public BadgerFishXMLStreamWriter(Writer writer, JSONObject currentNode, FastStack nodes)
-
-
Method Detail
-
close
public void close() throws XMLStreamException
- Throws:
XMLStreamException
-
flush
public void flush() throws XMLStreamException
- Throws:
XMLStreamException
-
getNamespaceContext
public NamespaceContext getNamespaceContext()
-
getPrefix
public String getPrefix(String ns) throws XMLStreamException
- Throws:
XMLStreamException
-
getProperty
public Object getProperty(String arg0) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
setDefaultNamespace
public void setDefaultNamespace(String arg0) throws XMLStreamException
- Throws:
XMLStreamException
-
setNamespaceContext
public void setNamespaceContext(NamespaceContext context) throws XMLStreamException
- Throws:
XMLStreamException
-
setPrefix
public void setPrefix(String arg0, String arg1) throws XMLStreamException
- Throws:
XMLStreamException
-
writeAttribute
public void writeAttribute(String p, String ns, String local, String value) throws XMLStreamException
- Throws:
XMLStreamException
-
writeAttribute
public void writeAttribute(String ns, String local, String value) throws XMLStreamException
- Throws:
XMLStreamException
-
writeAttribute
public void writeAttribute(String local, String value) throws XMLStreamException
- Throws:
XMLStreamException
-
writeCharacters
public void writeCharacters(String text) throws XMLStreamException
- Throws:
XMLStreamException
-
writeDefaultNamespace
public void writeDefaultNamespace(String ns) throws XMLStreamException
- Throws:
XMLStreamException
-
writeEndElement
public void writeEndElement() throws XMLStreamException
- Throws:
XMLStreamException
-
writeEntityRef
public void writeEntityRef(String arg0) throws XMLStreamException
- Throws:
XMLStreamException
-
writeNamespace
public void writeNamespace(String prefix, String ns) throws XMLStreamException
- Throws:
XMLStreamException
-
writeProcessingInstruction
public void writeProcessingInstruction(String arg0, String arg1) throws XMLStreamException
- Throws:
XMLStreamException
-
writeProcessingInstruction
public void writeProcessingInstruction(String arg0) throws XMLStreamException
- Throws:
XMLStreamException
-
writeStartDocument
public void writeStartDocument() throws XMLStreamException
- Throws:
XMLStreamException
-
writeEndDocument
public void writeEndDocument() throws XMLStreamException
- Specified by:
writeEndDocument
in interfaceXMLStreamWriter
- Overrides:
writeEndDocument
in classAbstractXMLStreamWriter
- Throws:
XMLStreamException
-
writeStartElement
public void writeStartElement(String prefix, String local, String ns) throws XMLStreamException
- Throws:
XMLStreamException
-
getCurrentNode
protected JSONObject getCurrentNode()
-
getNodes
protected FastStack getNodes()
-
-