org.apache.cxf.staxutils
Class W3CDOMStreamWriter
java.lang.Object
org.apache.cxf.staxutils.W3CDOMStreamWriter
- All Implemented Interfaces:
- javax.xml.stream.XMLStreamWriter
- Direct Known Subclasses:
- OverlayW3CDOMStreamWriter
public class W3CDOMStreamWriter
- extends Object
- implements javax.xml.stream.XMLStreamWriter
Method Summary |
void |
close()
|
void |
flush()
|
DocumentFragment |
getCurrentFragment()
|
Element |
getCurrentNode()
|
Document |
getDocument()
|
NamespaceContext |
getNamespaceContext()
|
String |
getPrefix(String uri)
|
Object |
getProperty(String prop)
|
boolean |
isNsRepairing()
|
protected void |
newChild(Element element)
|
protected void |
setChild(Element element,
boolean append)
|
void |
setDefaultNamespace(String arg0)
|
void |
setNamespaceContext(NamespaceContext ctx)
|
void |
setNsRepairing(boolean b)
|
void |
setPrefix(String arg0,
String arg1)
|
void |
setProperties(Map properties)
|
void |
writeAttribute(String local,
String value)
|
void |
writeAttribute(String namespace,
String local,
String value)
|
void |
writeAttribute(String prefix,
String namespace,
String local,
String value)
|
void |
writeCData(String data)
|
void |
writeCharacters(char[] text,
int start,
int len)
|
void |
writeCharacters(String text)
|
void |
writeComment(String value)
|
void |
writeDefaultNamespace(String namespace)
|
void |
writeDTD(String arg0)
|
void |
writeEmptyElement(String local)
|
void |
writeEmptyElement(String namespace,
String local)
|
void |
writeEmptyElement(String prefix,
String local,
String namespace)
|
void |
writeEndDocument()
|
void |
writeEndElement()
|
void |
writeEntityRef(String ref)
|
void |
writeNamespace(String prefix,
String namespace)
|
void |
writeProcessingInstruction(String target)
|
void |
writeProcessingInstruction(String target,
String data)
|
void |
writeStartDocument()
|
void |
writeStartDocument(String version)
|
void |
writeStartDocument(String encoding,
String version)
|
void |
writeStartElement(String local)
|
void |
writeStartElement(String namespace,
String local)
|
void |
writeStartElement(String prefix,
String local,
String namespace)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
W3CDOMStreamWriter
public W3CDOMStreamWriter()
throws ParserConfigurationException
- Throws:
ParserConfigurationException
W3CDOMStreamWriter
public W3CDOMStreamWriter(DocumentBuilder builder)
W3CDOMStreamWriter
public W3CDOMStreamWriter(Document document)
W3CDOMStreamWriter
public W3CDOMStreamWriter(DocumentFragment frag)
W3CDOMStreamWriter
public W3CDOMStreamWriter(Element e)
getCurrentNode
public Element getCurrentNode()
getCurrentFragment
public DocumentFragment getCurrentFragment()
setNsRepairing
public void setNsRepairing(boolean b)
isNsRepairing
public boolean isNsRepairing()
setProperties
public void setProperties(Map properties)
getDocument
public Document getDocument()
writeStartElement
public void writeStartElement(String local)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeStartElement
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
newChild
protected void newChild(Element element)
setChild
protected void setChild(Element element,
boolean append)
writeStartElement
public void writeStartElement(String namespace,
String local)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeStartElement
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeStartElement
public void writeStartElement(String prefix,
String local,
String namespace)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeStartElement
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeEmptyElement
public void writeEmptyElement(String namespace,
String local)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeEmptyElement
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeEmptyElement
public void writeEmptyElement(String prefix,
String local,
String namespace)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeEmptyElement
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeEmptyElement
public void writeEmptyElement(String local)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeEmptyElement
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeEndElement
public void writeEndElement()
throws javax.xml.stream.XMLStreamException
- Specified by:
writeEndElement
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeEndDocument
public void writeEndDocument()
throws javax.xml.stream.XMLStreamException
- Specified by:
writeEndDocument
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeAttribute
public void writeAttribute(String local,
String value)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeAttribute
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeAttribute
public void writeAttribute(String prefix,
String namespace,
String local,
String value)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeAttribute
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeAttribute
public void writeAttribute(String namespace,
String local,
String value)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeAttribute
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeNamespace
public void writeNamespace(String prefix,
String namespace)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeNamespace
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeDefaultNamespace
public void writeDefaultNamespace(String namespace)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeDefaultNamespace
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeComment
public void writeComment(String value)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeComment
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeProcessingInstruction
public void writeProcessingInstruction(String target)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeProcessingInstruction
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeProcessingInstruction
public void writeProcessingInstruction(String target,
String data)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeProcessingInstruction
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeCData
public void writeCData(String data)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeCData
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeDTD
public void writeDTD(String arg0)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeDTD
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeEntityRef
public void writeEntityRef(String ref)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeEntityRef
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeStartDocument
public void writeStartDocument()
throws javax.xml.stream.XMLStreamException
- Specified by:
writeStartDocument
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeStartDocument
public void writeStartDocument(String version)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeStartDocument
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeStartDocument
public void writeStartDocument(String encoding,
String version)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeStartDocument
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeCharacters
public void writeCharacters(String text)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeCharacters
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
writeCharacters
public void writeCharacters(char[] text,
int start,
int len)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeCharacters
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
getPrefix
public String getPrefix(String uri)
throws javax.xml.stream.XMLStreamException
- Specified by:
getPrefix
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
setPrefix
public void setPrefix(String arg0,
String arg1)
throws javax.xml.stream.XMLStreamException
- Specified by:
setPrefix
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
setDefaultNamespace
public void setDefaultNamespace(String arg0)
throws javax.xml.stream.XMLStreamException
- Specified by:
setDefaultNamespace
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
setNamespaceContext
public void setNamespaceContext(NamespaceContext ctx)
throws javax.xml.stream.XMLStreamException
- Specified by:
setNamespaceContext
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
getNamespaceContext
public NamespaceContext getNamespaceContext()
- Specified by:
getNamespaceContext
in interface javax.xml.stream.XMLStreamWriter
getProperty
public Object getProperty(String prop)
throws IllegalArgumentException
- Specified by:
getProperty
in interface javax.xml.stream.XMLStreamWriter
- Throws:
IllegalArgumentException
close
public void close()
throws javax.xml.stream.XMLStreamException
- Specified by:
close
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
flush
public void flush()
throws javax.xml.stream.XMLStreamException
- Specified by:
flush
in interface javax.xml.stream.XMLStreamWriter
- Throws:
javax.xml.stream.XMLStreamException
Apache CXF