| java.lang.Object java.io.Writer java.io.PrintWriter gnu.lists.PrintConsumer gnu.mapping.OutPort gnu.xml.XMLPrinter
Method Summary | |
public void | beginComment() | public void | beginEntity(Object base) | public void | closeTag() | public void | consume(SeqPosition position) | public void | endAttribute() | public void | endComment() | public void | endDocument() | public void | endElement() | public void | endEntity() | protected void | endNumber() | public void | error(String msg, String code) | public static String | formatDecimal(BigDecimal dec) Format java.math.BigDecimal as needed for XPath/XQuery's xs:decimal.
Specifically this means removing trailing fractional zeros, and a trailing
decimal point. | static String | formatDecimal(String str) | public static String | formatDouble(double d) Helper to format xs:double according to XPath/XQuery specification. | public static String | formatFloat(float f) Helper to format xs:float according to XPath/XQuery specification. | public boolean | ignoring() True if consumer is ignoring rest of element.
The producer can use this information to skip ahead. | public static boolean | isHtmlEmptyElementTag(String name) | public static XMLPrinter | make(OutPort out, Object style) | boolean | mustHexEscape(int v) | public void | print(Object v) | void | setIndentMode() | public void | setPrintXMLdecl(boolean value) | public void | setStyle(Object style) | public void | startAttribute(Object attrType) Write a attribute for the current element.
This is only allowed immediately after a startElement. | public void | startDocument() | public void | startElement(Object type) | protected void | startNumber() | public static String | toString(Object value) Convert argument to string in XML syntax. | public void | write(int v) | public void | write(String str, int start, int length) | public void | write(char[] buf, int off, int len) | public void | writeBaseUri(Object uri) | public void | writeBoolean(boolean v) | public void | writeCDATA(char[] chars, int offset, int length) | public void | writeComment(String chars) | public void | writeComment(char[] chars, int offset, int length) | public void | writeDouble(double d) | public void | writeFloat(float f) | public void | writeObject(Object v) | public void | writePosition(AbstractSequence seq, int ipos) | public void | writeProcessingInstruction(String target, char[] content, int offset, int length) | protected void | writeQName(Object name) |
canonicalize | boolean canonicalize(Code) | | |
canonicalizeCDATA | public boolean canonicalizeCDATA(Code) | | |
doctypePublic | final public static ThreadLocation doctypePublic(Code) | | The system identifier emitted in a DOCTYPE declaration.
Has no effect if doctypeSystem returns null.
If non-null, this is the the system identifier.
|
doctypeSystem | final public static ThreadLocation doctypeSystem(Code) | | Fluid parameter to control whether a DOCTYPE declaration is emitted.
If non-null, this is the the public identifier.
|
elementNesting | int elementNesting(Code) | | Difference between number of startElement and endElement calls so far.
|
escapeNonAscii | public boolean escapeNonAscii(Code) | | |
escapeText | public boolean escapeText(Code) | | |
inAttribute | boolean inAttribute(Code) | | |
inComment | int inComment(Code) | | 0: not in comment; 1: in comment normal; 2: in comment after '-'.
|
inDocument | boolean inDocument(Code) | | |
inStartTag | boolean inStartTag(Code) | | |
indentAttributes | public boolean indentAttributes(Code) | | When indentating, should attributes be lined up?
|
namespaceSaveStack | NamespaceBinding[] namespaceSaveStack(Code) | | Stack of namespaceBindings as of active startElement calls.
|
needXMLdecl | boolean needXMLdecl(Code) | | |
printIndent | public int printIndent(Code) | | Controls whether to add extra indentation.
-1: don't add indentation; 0: pretty-print (avoid needless newlines);
1: indent (force).
|
printXMLdecl | boolean printXMLdecl(Code) | | |
savedHighSurrogate | char savedHighSurrogate(Code) | | |
strict | public boolean strict(Code) | | |
undeclareNamespaces | boolean undeclareNamespaces(Code) | | |
useEmptyElementTag | public int useEmptyElementTag(Code) | | Handling of empty elements.
0: No element element tags, as required for canonical XML:
.
1: Use XML-style empty element tags:
2: Use HTML-compatible empty element tags:
|
XMLPrinter | public XMLPrinter(OutPort out, boolean autoFlush)(Code) | | |
XMLPrinter | public XMLPrinter(Writer out, boolean autoFlush)(Code) | | |
beginComment | public void beginComment()(Code) | | |
closeTag | public void closeTag()(Code) | | |
endAttribute | public void endAttribute()(Code) | | |
endComment | public void endComment()(Code) | | |
endDocument | public void endDocument()(Code) | | |
endElement | public void endElement()(Code) | | |
endEntity | public void endEntity()(Code) | | |
endNumber | protected void endNumber()(Code) | | |
formatDecimal | public static String formatDecimal(BigDecimal dec)(Code) | | Format java.math.BigDecimal as needed for XPath/XQuery's xs:decimal.
Specifically this means removing trailing fractional zeros, and a trailing
decimal point. However, note that the XML Schema canonical representation
does require a decimal point and at least one fractional digit.
|
formatDouble | public static String formatDouble(double d)(Code) | | Helper to format xs:double according to XPath/XQuery specification.
|
formatFloat | public static String formatFloat(float f)(Code) | | Helper to format xs:float according to XPath/XQuery specification.
|
ignoring | public boolean ignoring()(Code) | | True if consumer is ignoring rest of element.
The producer can use this information to skip ahead.
|
isHtmlEmptyElementTag | public static boolean isHtmlEmptyElementTag(String name)(Code) | | |
mustHexEscape | boolean mustHexEscape(int v)(Code) | | |
setIndentMode | void setIndentMode()(Code) | | |
setPrintXMLdecl | public void setPrintXMLdecl(boolean value)(Code) | | |
startAttribute | public void startAttribute(Object attrType)(Code) | | Write a attribute for the current element.
This is only allowed immediately after a startElement.
|
startDocument | public void startDocument()(Code) | | |
startNumber | protected void startNumber()(Code) | | |
toString | public static String toString(Object value)(Code) | | Convert argument to string in XML syntax.
|
write | public void write(int v)(Code) | | |
write | public void write(String str, int start, int length)(Code) | | |
write | public void write(char[] buf, int off, int len)(Code) | | |
writeBoolean | public void writeBoolean(boolean v)(Code) | | |
writeCDATA | public void writeCDATA(char[] chars, int offset, int length)(Code) | | |
writeComment | public void writeComment(char[] chars, int offset, int length)(Code) | | |
writeDouble | public void writeDouble(double d)(Code) | | |
writeFloat | public void writeFloat(float f)(Code) | | |
writeProcessingInstruction | public void writeProcessingInstruction(String target, char[] content, int offset, int length)(Code) | | |
Methods inherited from java.io.PrintWriter | public PrintWriter append(CharSequence csq)(Code)(Java Doc) public PrintWriter append(CharSequence csq, int start, int end)(Code)(Java Doc) public PrintWriter append(char c)(Code)(Java Doc) public boolean checkError()(Code)(Java Doc) protected void clearError()(Code)(Java Doc) public void close()(Code)(Java Doc) public void flush()(Code)(Java Doc) public PrintWriter format(String format, Object... args)(Code)(Java Doc) public PrintWriter format(Locale l, String format, Object... args)(Code)(Java Doc) public void print(boolean b)(Code)(Java Doc) public void print(char c)(Code)(Java Doc) public void print(int i)(Code)(Java Doc) public void print(long l)(Code)(Java Doc) public void print(float f)(Code)(Java Doc) public void print(double d)(Code)(Java Doc) public void print(char s)(Code)(Java Doc) public void print(String s)(Code)(Java Doc) public void print(Object obj)(Code)(Java Doc) public PrintWriter printf(String format, Object... args)(Code)(Java Doc) public PrintWriter printf(Locale l, String format, Object... args)(Code)(Java Doc) public void println()(Code)(Java Doc) public void println(boolean x)(Code)(Java Doc) public void println(char x)(Code)(Java Doc) public void println(int x)(Code)(Java Doc) public void println(long x)(Code)(Java Doc) public void println(float x)(Code)(Java Doc) public void println(double x)(Code)(Java Doc) public void println(char x)(Code)(Java Doc) public void println(String x)(Code)(Java Doc) public void println(Object x)(Code)(Java Doc) protected void setError()(Code)(Java Doc) public void write(int c)(Code)(Java Doc) public void write(char buf, int off, int len)(Code)(Java Doc) public void write(char buf)(Code)(Java Doc) public void write(String s, int off, int len)(Code)(Java Doc) public void write(String s)(Code)(Java Doc)
|
|
|