org.apache.xml.serialize
Class Printer

java.lang.Object
  extended by org.apache.xml.serialize.Printer
Direct Known Subclasses:
IndentPrinter

Deprecated. This class was deprecated in Xerces 2.9.0. It is recommended that new applications use the DOM Level 3 LSSerializer or JAXP's Transformation API for XML (TrAX) for serializing XML. See the Xerces documentation for more information.

public class Printer
extends java.lang.Object

The printer is responsible for sending text to the output stream or writer. This class performs direct writing for efficiency. IndentPrinter supports indentation and line wrapping by extending this class.

Version:
$Revision: 476047 $ $Date: 2006-11-16 23:27:45 -0500 (Thu, 16 Nov 2006) $
Author:
Assaf Arkin

Constructor Summary
Printer(java.io.Writer writer, OutputFormat format)
          Deprecated.  
 
Method Summary
 void breakLine()
          Deprecated.  
 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.  
 java.io.IOException getException()
          Deprecated.  
 int getNextIndent()
          Deprecated.  
 void indent()
          Deprecated.  
 java.lang.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.  
 void printText(char ch)
          Deprecated.  
 void printText(char[] chars, int start, int length)
          Deprecated.  
 void printText(java.lang.String text)
          Deprecated.  
 void printText(java.lang.StringBuffer text)
          Deprecated.  
 void setNextIndent(int indent)
          Deprecated.  
 void setThisIndent(int indent)
          Deprecated.  
 void unindent()
          Deprecated.  
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Printer

public Printer(java.io.Writer writer,
               OutputFormat format)
Deprecated. 
Method Detail

getException

public java.io.IOException getException()
Deprecated. 

enterDTD

public void enterDTD()
              throws java.io.IOException
Deprecated. 
Called by any of the DTD handlers to enter DTD mode. Once entered, all output will be accumulated in a string that can be printed as part of the document's DTD. This method may be called any number of time but will only have affect the first time it's called. To exist DTD state and get the accumulated DTD, call leaveDTD().

Throws:
java.io.IOException

leaveDTD

public java.lang.String leaveDTD()
                          throws java.io.IOException
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.

Throws:
java.io.IOException

printText

public void printText(java.lang.String text)
               throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException

printText

public void printText(java.lang.StringBuffer text)
               throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException

printText

public void printText(char[] chars,
                      int start,
                      int length)
               throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException

printText

public void printText(char ch)
               throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException

printSpace

public void printSpace()
                throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException

breakLine

public void breakLine()
               throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException

breakLine

public void breakLine(boolean preserveSpace)
               throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException

flushLine

public void flushLine(boolean preserveSpace)
               throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Deprecated. 
Flush the output stream. Must be called when done printing the document, otherwise some text might be buffered.

Throws:
java.io.IOException

indent

public void indent()
Deprecated. 

unindent

public void unindent()
Deprecated. 

getNextIndent

public int getNextIndent()
Deprecated. 

setNextIndent

public void setNextIndent(int indent)
Deprecated. 

setThisIndent

public void setThisIndent(int indent)
Deprecated.