public class XMLWriterImpl extends XMLWriterBase
A concrete XMLWriter implementation class.
| Constructor and Description |
|---|
XMLWriterImpl(OutputStream out,
String enc,
boolean declare) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the writer and its underlying stream.
|
void |
endElement()
Write the end tag for the current element.
|
void |
flush()
Flush the writer and its underlying stream.
|
String |
getPrefix(String uri)
Return a prefix for the given URI.
|
PrefixFactory |
getPrefixFactory()
Return the prefix factory in use by this writer.
|
String |
getURI(String prefix)
Return the URI for a given prefix.
|
void |
setPrefixFactory(PrefixFactory factory)
Set the prefix factory to be used by this writer.
|
void |
startElement(String localName,
String uri)
Write the start tag for an element.
|
void |
startElement(String localName,
String uri,
String prefix)
Write the start tag for an element.
|
void |
writeAttribute(String localName,
String uri,
String value)
Write an attribute of the current element.
|
void |
writeAttributeUnquoted(String localName,
String uri,
String value)
Write an attribute (unquoted) of the current element.
|
void |
writeChars(CDATA chars)
Write character data within an element.
|
void |
writeChars(String chars)
Write character data within an element.
|
void |
writeCharsUnquoted(char[] buf,
int offset,
int len)
Write character data within an element, skipping quoting.
|
void |
writeCharsUnquoted(String chars)
Write character data within an element, skipping quoting.
|
void |
writeNamespaceDeclaration(String uri)
Write a namespace declaration of the current element.
|
void |
writeNamespaceDeclaration(String prefix,
String uri)
Write a namespace declaration of the current element.
|
startElement, startElement, startElement, writeAttribute, writeAttribute, writeAttributeUnquoted, writeAttributeUnquoted, writeCommentpublic XMLWriterImpl(OutputStream out, String enc, boolean declare)
public void startElement(String localName, String uri)
XMLWriterpublic void startElement(String localName, String uri, String prefix)
XMLWriterpublic void writeNamespaceDeclaration(String prefix, String uri)
XMLWriterpublic void writeNamespaceDeclaration(String uri)
XMLWriterpublic void writeAttribute(String localName, String uri, String value)
XMLWriterpublic void writeAttributeUnquoted(String localName, String uri, String value)
XMLWriterpublic void writeChars(CDATA chars)
XMLWriterwriteChars in interface XMLWriterwriteChars in class XMLWriterBasepublic void writeChars(String chars)
XMLWriterwriteChars in interface XMLWriterwriteChars in class XMLWriterBasepublic void writeCharsUnquoted(String chars)
XMLWriterpublic void writeCharsUnquoted(char[] buf,
int offset,
int len)
XMLWriterpublic void endElement()
XMLWriterpublic PrefixFactory getPrefixFactory()
XMLWriterpublic void setPrefixFactory(PrefixFactory factory)
XMLWriterpublic String getURI(String prefix)
XMLWriterpublic String getPrefix(String uri)
XMLWriterIf no prefix for the given URI is in scope, return null.
public void flush()
XMLWriterpublic void close()
XMLWriterCopyright © 2017–2019 Eclipse Foundation. All rights reserved.