|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jplist.output.AsciiOutputter
public class AsciiOutputter
Builds an ASCII Text representation of a JPList object. Provides methods to set the style of output.
Constructor Summary | |
---|---|
AsciiOutputter()
Instantiate a new Ascii Outputter. |
Method Summary | |
---|---|
protected java.io.Writer |
makeWriter(java.io.OutputStream ostream)
Builds a PrintWriter object out of an OutputStream. |
void |
output(ArrayElement arrayElement,
java.io.OutputStream ostream)
Output the ArrayElement object to an OutputStream. |
void |
output(ArrayElement arrayElement,
java.io.Writer writer)
Output the ArrayElement object to a Writer. |
void |
output(DataElement dataElement,
java.io.OutputStream ostream)
Output the JPList DataElement object to an OutputStream. |
void |
output(DataElement dataElement,
java.io.Writer writer)
Output the DataElement object to a Writer. |
void |
output(DictionaryElement dictionaryElement,
java.io.OutputStream ostream)
Output the DictionaryElement object to an OutputStream. |
void |
output(DictionaryElement dictionaryElement,
java.io.Writer writer)
Output a DictionaryElement object to a Writer. |
void |
output(Document doc,
java.io.OutputStream ostream)
Output the JPList Document object to an OutputStream. |
void |
output(Document doc,
java.io.Writer writer)
Output the JPList Document object to a Writer. |
void |
output(StringElement stringElement,
java.io.OutputStream ostream)
Output the JPList StringElement object to an OutputStream. |
void |
output(StringElement stringElement,
java.io.Writer writer)
Output the StringElement object to a Writer. |
java.lang.String |
outputString(ArrayElement arrayElement)
Output an ArrayElement object to a String. |
java.lang.String |
outputString(DataElement dataElement)
Output a DataElement object to a String. |
java.lang.String |
outputString(DictionaryElement dictionaryElement)
Output a DictionaryElement object to a String. |
java.lang.String |
outputString(Document doc)
Output a JPList Document object as a String. |
java.lang.String |
outputString(IElement element)
Routing function to format the various IElement implementations. |
java.lang.String |
outputString(StringElement stringElement)
Output a StringElement object to a String. |
void |
setIndent(java.lang.String indent)
Allows setting of the indent. |
void |
setLineSeparator(java.lang.String lineSeparator)
Sets a line separator for the output. |
void |
setNewLines(boolean newline)
Newlines will appear in the output if this is set to true. |
void |
setTrimAllWhite(boolean trimAllWhite)
If set to true, all non-essential whitespace will be trimmed. |
java.lang.String |
toString()
Returns a String representation of this AsciiOutputter with its current settings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AsciiOutputter()
Method Detail |
---|
public void setIndent(java.lang.String indent)
indent
- the string to indent with.public void setLineSeparator(java.lang.String lineSeparator)
lineSeparator
- the string with which to separate lines.public void setNewLines(boolean newline)
newline
- true if output should have newlines for formatting.public void setTrimAllWhite(boolean trimAllWhite)
trimAllWhite
- true to trim non-essential whitespace.public void output(Document doc, java.io.OutputStream ostream) throws java.io.IOException
doc
- the Document object.ostream
- the OutputStream.
java.io.IOException
- if there was a problem.public void output(StringElement stringElement, java.io.OutputStream ostream) throws java.io.IOException
stringElement
- the StringElement to output.ostream
- the OutputStream
java.io.IOException
- if there was a problem.public void output(DataElement dataElement, java.io.OutputStream ostream) throws java.io.IOException
dataElement
- the DataElement to output.ostream
- the OutputStream.
java.io.IOException
- if there was a problem.public void output(ArrayElement arrayElement, java.io.OutputStream ostream) throws java.io.IOException
arrayElement
- the ArrayElement object to output.ostream
- the OutputStream.
java.io.IOException
- if there was a problem.public void output(DictionaryElement dictionaryElement, java.io.OutputStream ostream) throws java.io.IOException
dictionaryElement
- the DictionaryElement to output.ostream
- the OutputStream.
java.io.IOException
- if there was a problem.public void output(Document doc, java.io.Writer writer) throws java.io.IOException
doc
- the Document object to output.writer
- the Writer object.
java.io.IOException
- if there was a problem.public void output(StringElement stringElement, java.io.Writer writer) throws java.io.IOException
stringElement
- the StringElement object to output.writer
- the Writer object.
java.io.IOException
- if there was a problem.public void output(DataElement dataElement, java.io.Writer writer) throws java.io.IOException
dataElement
- the DataElement object to output.writer
- the Writer object.
java.io.IOException
- if there was a problem.public void output(ArrayElement arrayElement, java.io.Writer writer) throws java.io.IOException
arrayElement
- the ArrayElement object to output.writer
- the Writer object.
java.io.IOException
- if there was a problem.public void output(DictionaryElement dictionaryElement, java.io.Writer writer) throws java.io.IOException
dictionaryElement
- the DictionaryElement object to output.writer
- the Writer object.
java.io.IOException
- if there was a problem.public java.lang.String outputString(Document doc)
doc
- the JPList Document object.
public java.lang.String outputString(IElement element)
element
- an IElement to output.
public java.lang.String outputString(StringElement stringElement)
stringElement
- the StringElement object to output.
public java.lang.String outputString(DataElement dataElement)
dataElement
- the DataElement object to output.
public java.lang.String outputString(ArrayElement arrayElement)
arrayElement
- the ArrayElement object to output.
public java.lang.String outputString(DictionaryElement dictionaryElement)
dictionaryElement
- the DictionaryElement object to output.
public java.lang.String toString()
toString
in class java.lang.Object
protected java.io.Writer makeWriter(java.io.OutputStream ostream)
ostream
- an OutputStream object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |