|
Devsphere.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.devsphere.examples.xml.saxdomix.OutputterBase
Base class for SAXOutputter and DOMOutputter.
SAXOutputter,
DOMOutputter| Field Summary | |
static int |
DEFAULT_MAX_DATA_LENGTH
Default value for maxDataLength |
protected int |
level
The current indenting level |
protected int |
maxDataLength
Data strings longer than this value are truncated before printing |
| Constructor Summary | |
OutputterBase()
Zero-arg constructor. |
|
OutputterBase(int level)
Constructor that takes as parameter the initial level. |
|
OutputterBase(int level,
int maxDataLength)
Constructor that takes as parameter the initial level and the value for the maxDataLength property. |
|
| Method Summary | |
void |
blankLine()
Prints a blank line. |
void |
decLevel()
Decrements the indenting level. |
int |
getLevel()
Gets the indenting level. |
int |
getMaxDataLength()
Gets the value of the maxDataLength property. |
void |
incLevel()
Increments the indenting level. |
void |
output(java.lang.String info)
Outputs an information |
void |
output(java.lang.String info,
java.lang.String data)
Outputs an information followed by a data string |
void |
setLevel(int level)
Sets the indenting level. |
void |
setMaxDataLength(int maxDataLength)
Sets the value of the maxDataLength property. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DEFAULT_MAX_DATA_LENGTH
maxDataLength
protected int maxDataLength
protected int level
| Constructor Detail |
public OutputterBase()
public OutputterBase(int level)
public OutputterBase(int level,
int maxDataLength)
maxDataLength property.
| Method Detail |
public void setLevel(int level)
public int getLevel()
public void incLevel()
public void decLevel()
public void setMaxDataLength(int maxDataLength)
maxDataLength property.
public int getMaxDataLength()
maxDataLength property.
public void blankLine()
public void output(java.lang.String info)
public void output(java.lang.String info,
java.lang.String data)
|
Devsphere.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||