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 voidclose()voidflush()protected JSONObjectgetCurrentNode()NamespaceContextgetNamespaceContext()protected FastStackgetNodes()StringgetPrefix(String ns)ObjectgetProperty(String arg0)voidsetDefaultNamespace(String arg0)voidsetNamespaceContext(NamespaceContext context)voidsetPrefix(String arg0, String arg1)voidwriteAttribute(String local, String value)voidwriteAttribute(String ns, String local, String value)voidwriteAttribute(String p, String ns, String local, String value)voidwriteCharacters(String text)voidwriteDefaultNamespace(String ns)voidwriteEndDocument()voidwriteEndElement()voidwriteEntityRef(String arg0)voidwriteNamespace(String prefix, String ns)voidwriteProcessingInstruction(String arg0)voidwriteProcessingInstruction(String arg0, String arg1)voidwriteStartDocument()voidwriteStartElement(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:
writeEndDocumentin interfaceXMLStreamWriter- Overrides:
writeEndDocumentin 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()
-
-