org.backsource.utils.io
Class ByteCachedOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.FilterOutputStream
          extended byjava.io.BufferedOutputStream
              extended byorg.backsource.utils.io.CachedOutputStream
                  extended byorg.backsource.utils.io.ByteCachedOutputStream

public class ByteCachedOutputStream
extends CachedOutputStream

A CachedOutoutStream.

for now this is just a BufferedOutputStream that uses a ByteArrayOutputStream as its sink, which is available here.

Version:
$Revision: 1.1.1.1 $
Author:
Peter Antman

Field Summary
 
Fields inherited from class java.io.BufferedOutputStream
buf, count
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
ByteCachedOutputStream()
           
 
Method Summary
 java.lang.Object getSink()
          return the underlying byte array.
 
Methods inherited from class java.io.BufferedOutputStream
flush, write, write
 
Methods inherited from class java.io.FilterOutputStream
close, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteCachedOutputStream

public ByteCachedOutputStream()
Method Detail

getSink

public java.lang.Object getSink()
                         throws java.io.IOException
return the underlying byte array.

Specified by:
getSink in class CachedOutputStream
Throws:
java.io.IOException


Copyright © 2000-2004 Backsource. All Rights Reserved.