cc.xml
Class PrettyPrinter.StreamAdapter

java.lang.Object
  extended by java.io.OutputStream
      extended by cc.xml.PrettyPrinter.StreamAdapter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable
Enclosing class:
PrettyPrinter

public static class PrettyPrinter.StreamAdapter
extends java.io.OutputStream


Field Summary
(package private)  java.io.Writer finalDestination
           
private  java.io.ByteArrayOutputStream out
           
 
Constructor Summary
PrettyPrinter.StreamAdapter(java.io.Writer finalDestination)
           
 
Method Summary
 void flushPretty()
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
close, flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

private java.io.ByteArrayOutputStream out

finalDestination

java.io.Writer finalDestination
Constructor Detail

PrettyPrinter.StreamAdapter

public PrettyPrinter.StreamAdapter(java.io.Writer finalDestination)
Method Detail

write

public void write(int b)
Specified by:
write in class java.io.OutputStream

flushPretty

public void flushPretty()
                 throws java.io.IOException
Throws:
java.io.IOException