public class XMLWriter extends OutputStreamWriter implements IXMLWriter
| Modifier and Type | Field and Description |
|---|---|
static int |
LINE_UNIX |
static int |
LINE_WINDOWS |
| Constructor and Description |
|---|
XMLWriter(OutputStream stream,
String charset) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
abbreviationDefined(String abbreviation) |
void |
attribute(String name,
String value) |
void |
attribute(String name,
String value,
boolean onlyIfNotEmpty) |
void |
attribute(String namespace,
String name,
String value) |
void |
attribute(String namespace,
String name,
String value,
boolean onlyIfNotEmpty) |
void |
attributeNoLines(String name,
String value) |
void |
cData(String text) |
void |
close() |
void |
comment(String comment,
boolean doPretty) |
protected void |
commitAttributes() |
protected boolean |
condition(boolean bTest,
String message) |
void |
element(String name) |
void |
element(String name,
String content) |
void |
element(String name,
String content,
boolean onlyIfNotEmpty) |
void |
element(String namespace,
String name,
String content) |
void |
element(String namespace,
String name,
String content,
boolean onlyIfNotEmpty) |
void |
element(String namespace,
String name,
String content,
String comment) |
void |
end() |
void |
endCommentBlock() |
void |
enter(String name) |
void |
enter(String namespace,
String name) |
void |
enter(String namespace,
String name,
String comment) |
void |
escapedText(String content) |
void |
exit() |
void |
exit(String name) |
void |
exit(String namespace,
String name) |
void |
exitToLevel(int count) |
XMLNamespace |
findByAbbreviation(String abbreviation) |
XMLNamespace |
findByNamespace(String namespace) |
protected XMLNamespace |
findDefaultNamespace() |
protected String |
getAttribute(String name) |
int |
getAttributeLineWrap() |
String |
getDefaultNamespace() |
int |
getLineType() |
String[] |
getSpecialAttributeNames() |
static String |
getXMLCharsetName(String charset)
Returns the encoding.
|
boolean |
isPretty() |
boolean |
isPrettyHeader() |
boolean |
isSortAttributes() |
boolean |
isXmlHeader() |
void |
link(String href) |
void |
namespace(String namespace) |
void |
namespace(String namespace,
String abbreviation) |
boolean |
namespaceDefined(String namespace) |
void |
processingInstruction(String value) |
protected void |
setAttribute(String name,
String value) |
void |
setAttributeLineWrap(int attributeLineWrap) |
void |
setDefaultNamespace(String namespace) |
void |
setLineType(int lineType) |
void |
setPretty(boolean pretty) |
void |
setPrettyHeader(boolean pretty) |
void |
setSortAttributes(boolean sortAttributes) |
void |
setSpecialAttributeNames(String[] specialAttributeNames) |
void |
setXmlHeader(boolean xmlHeader) |
void |
start() |
void |
startCommentBlock()
Start comment inserts a
Methods inherited from class java.io.OutputStreamWriterflush, getEncoding, write, write, write
Copyright © 2014–2018 University Health Network. All rights reserved. |