API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.text. AbstractWriter View Source
Author(s)
Sunita Mani
Since
Version
1.23, 04/07/06
Serial
Hierarchy
 Object
      AbstractWriter
Implements
Subclasses
Description
publicabstract abstract class AbstractWriter
  AbstractWriter is an abstract class that actually does the work of writing out the element tree including the attributes.
See also:   
Constructors
protected AbstractWriter (Writer w, Document doc)
  Creates a new AbstractWriter.
protected AbstractWriter (Writer w, Document doc, int pos, int len)
  Creates a new AbstractWriter.
protected AbstractWriter (Writer w, Element root)
  Creates a new AbstractWriter.
protected AbstractWriter (Writer w, Element root, int pos, int len)
  Creates a new AbstractWriter.
Methods
Hide/Show inherited methods
protected void decrIndent ()
Decrements the indent level.
protected boolean getCanWrapLines ()
  Returns whether or not the lines can be wrapped.
protected int getCurrentLineLength ()
  Returns the current line length.
protected Document getDocument ()
  Fetches the document.
protected ElementIterator getElementIterator ()
  Fetches the ElementIterator.
public int getEndOffset ()
  Returns the last offset to be output.
protected int getIndentLevel ()
  Returns the current indentation level.
protected int getIndentSpace ()
  Returns the amount of space to indent.
protected int getLineLength ()
  Returns the maximum line length.
public String getLineSeparator ()
  Returns the string used to represent newlines.
public int getStartOffset ()
  Returns the first offset to be output.
protected String getText (Element elem) throws BadLocationException
  Returns the text associated with the element.
protected Writer getWriter ()
  Returns the Writer that is used to output the content.
protected void incrIndent ()
  Increments the indent level.
protected void indent () throws IOException
  Does indentation.
protected boolean inRange (Element next)
  This method determines whether the current element is in the range specified.
protected boolean isLineEmpty ()
  Returns true if the current line should be considered empty.
protected void output (char[] content, int start, int length) throws IOException
  The last stop in writing out content.
protected void setCanWrapLines (boolean newValue)
  Sets whether or not lines can be wrapped.
protected void setCurrentLineLength (int length)
  Sets the current line length.
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.
public void setLineSeparator (String value)
  Sets the String used to reprsent newlines.
protected void text (Element elem) throws BadLocationException IOException
  Writes out text.
protectedabstract void write () throws IOException BadLocationException
  This abstract method needs to be implemented by subclasses.
protected void write (char ch) throws IOException
  Writes out a character.
protected void write (char[] chars, int startIndex, int length) throws IOException
  All write methods call into this one.
protected void write (String content) throws IOException
  Writes out a string.
protected void writeAttributes (AttributeSet attr) throws IOException
  Writes out the set of attributes as " =" pairs.
protected void writeLineSeparator () throws IOException
  Writes the line separator.
Fields
Hide/Show inherited fields
protectedfinalstatic char NEWLINE = "10"
  How the text packages models newlines.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar