|
Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.5) Part Number E13941-05 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.apache.xml.serialize.Printer
weblogic.apache.xml.serialize.IndentPrinter
public class IndentPrinter
Extends Printer
and adds support for indentation and line
wrapping.
Field Summary |
---|
Fields inherited from class weblogic.apache.xml.serialize.Printer |
---|
_docWriter, _dtdWriter, _exception, _format, _writer |
Constructor Summary | |
---|---|
IndentPrinter(Writer writer,
OutputFormat format)
Deprecated. |
Method Summary | |
---|---|
void |
breakLine()
Deprecated. Called to print a line consisting of the text accumulated so far. |
void |
breakLine(boolean preserveSpace)
Deprecated. |
void |
enterDTD()
Deprecated. Called by any of the DTD handlers to enter DTD mode. |
void |
flush()
Deprecated. Flush the output stream. |
void |
flushLine(boolean preserveSpace)
Deprecated. Flushes the line accumulated so far to the writer and get ready to accumulate the next line. |
int |
getNextIndent()
Deprecated. |
void |
indent()
Deprecated. Increment the indentation for the next line. |
String |
leaveDTD()
Deprecated. Called by the root element to leave DTD mode and if any DTD parts were printer, will return a string with their textual content. |
void |
printSpace()
Deprecated. Called to print a single space between text parts that may be broken into separate lines. |
void |
printText(char ch)
Deprecated. |
void |
printText(char[] chars,
int start,
int length)
Deprecated. |
void |
printText(String text)
Deprecated. Called to print additional text. |
void |
printText(StringBuffer text)
Deprecated. |
void |
setNextIndent(int indent)
Deprecated. |
void |
setThisIndent(int indent)
Deprecated. |
void |
unindent()
Deprecated. Decrement the indentation for the next line. |
Methods inherited from class weblogic.apache.xml.serialize.Printer |
---|
getException |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndentPrinter(Writer writer, OutputFormat format)
Method Detail |
---|
public void enterDTD()
IndentPrinter.leaveDTD()
.
enterDTD
in class Printer
public String leaveDTD()
leaveDTD
in class Printer
public void printText(String text)
IndentPrinter.printSpace()
) all the accumulated text becomes one part and is
added to the accumulate line. When a line is long enough, it can
be broken at its text boundary.
printText
in class Printer
text
- The text to printpublic void printText(StringBuffer text)
printText
in class Printer
public void printText(char ch)
printText
in class Printer
public void printText(char[] chars, int start, int length)
printText
in class Printer
public void printSpace()
IndentPrinter.printText(java.lang.String)
will be added to the accumulated line, and a space
separator will be counted. If the line accumulated so far is
long enough, it will be printed.
printSpace
in class Printer
public void breakLine()
IndentPrinter.printSpace()
but
forcing the line to print and starting a new line (IndentPrinter.printSpace()
will only start a new line if the current line
is long enough).
breakLine
in class Printer
public void breakLine(boolean preserveSpace)
breakLine
in class Printer
public void flushLine(boolean preserveSpace)
IndentPrinter.printText(java.lang.String)
and IndentPrinter.printSpace()
when the accumulated line plus
accumulated text are two long to fit on a given line. At the end of
this method _line is empty and _spaces is zero.
flushLine
in class Printer
public void flush()
flush
in class Printer
public void indent()
indent
in class Printer
public void unindent()
unindent
in class Printer
public int getNextIndent()
getNextIndent
in class Printer
public void setNextIndent(int indent)
setNextIndent
in class Printer
public void setThisIndent(int indent)
setThisIndent
in class Printer
|
Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.5) Part Number E13941-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |