anvil.util
Class PrettyPrinter

java.lang.Object
  |
  +--anvil.util.PrettyPrinter
All Implemented Interfaces:
DocumentHandler

public class PrettyPrinter
extends java.lang.Object
implements DocumentHandler

class PrettyPrinter


Constructor Summary
PrettyPrinter(InputSource source, java.io.Writer writer)
           
 
Method Summary
 boolean allowIndent()
           
 java.lang.String compress(java.lang.String cdata)
           
 void endDocument()
           
 void handleCharacters(java.lang.String characters)
           
 void handleComment(java.lang.String characters)
           
 void handleProcessingInstruction(java.lang.String data)
           
 void handleTag(Tag tag)
           
 void print()
           
 void setDocumentLocator(Locator locator)
           
 void startDocument()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrettyPrinter

public PrettyPrinter(InputSource source,
                     java.io.Writer writer)
Method Detail

setDocumentLocator

public void setDocumentLocator(Locator locator)
Specified by:
setDocumentLocator in interface DocumentHandler

startDocument

public void startDocument()
Specified by:
startDocument in interface DocumentHandler

endDocument

public void endDocument()
Specified by:
endDocument in interface DocumentHandler

compress

public java.lang.String compress(java.lang.String cdata)

allowIndent

public boolean allowIndent()

handleCharacters

public void handleCharacters(java.lang.String characters)
Specified by:
handleCharacters in interface DocumentHandler

handleComment

public void handleComment(java.lang.String characters)
Specified by:
handleComment in interface DocumentHandler

handleTag

public void handleTag(Tag tag)
Specified by:
handleTag in interface DocumentHandler

handleProcessingInstruction

public void handleProcessingInstruction(java.lang.String data)
Specified by:
handleProcessingInstruction in interface DocumentHandler

print

public void print()
           throws java.io.IOException
java.io.IOException