|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.java.swing.text.AbstractWriter
Field Summary | |
protected static char | NEWLINE
|
Constructor Summary | |
AbstractWriter(Writer w,
Document doc)
Creates a new AbstractWriter. |
|
AbstractWriter(Writer w,
Element root)
Creates a new AbstractWriter. |
Method Summary | |
protected void | decrIndent()
Decrements the indent level. |
protected Document | getDocument()
Fetches the document. |
protected ElementIterator | getElementIterator()
Fetches the ElementIterator. |
protected String | getText(Element elem)
Returns the text associated with the element. |
protected void | incrIndent()
Increments the indent level. |
protected void | indent()
Does indentation. |
protected void | setIndentSpace(int space)
Enables subclasses to specify how many spaces an indent maps to. |
protected void | setLineLength(int l)
Enables subclasses to set the number of characters they want written per line. |
protected void | text(Element elem)
Writes out text. |
protected abstract void | write()
This abstract method needs to be implemented by subclasses. |
protected void | write(char ch)
Writes out a character. |
protected void | write(String str)
Writes out a string. |
protected void | writeAttributes(AttributeSet attr)
Writes out the set of attributes as " |
Methods inherited from class java.lang.Object | |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
Field Detail |
protected static final char NEWLINE
Constructor Detail |
protected AbstractWriter(Writer w, Document doc)
a
- Writer.
a
- Documentprotected AbstractWriter(Writer w, Element root)
a
- Writer
an
- ElementMethod Detail |
protected ElementIterator getElementIterator()
protected Document getDocument()
protected abstract void write() throws IOException, BadLocationException
protected String getText(Element elem) throws BadLocationException
an
- Element.protected void text(Element elem) throws BadLocationException, IOException
an
- Element.protected void setLineLength(int l)
the
- maximum line length.protected void setIndentSpace(int space)
an
- int representing the space to indent mapping.protected void incrIndent()
protected void decrIndent()
protected void indent() throws IOException
protected void write(char ch) throws IOException
a
- char.protected void write(String str) throws IOException
a
- String.protected void writeAttributes(AttributeSet attr) throws IOException
an
- AttributeSet.
|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |