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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrettyPrinter
public PrettyPrinter(InputSource source,
java.io.Writer writer)
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