org.backsource.utils.io
Class CachedOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.FilterOutputStream
          extended byjava.io.BufferedOutputStream
              extended byorg.backsource.utils.io.CachedOutputStream
Direct Known Subclasses:
ByteCachedOutputStream, DOMCachedOutputStream, FileCachedOutputStream

public abstract class CachedOutputStream
extends java.io.BufferedOutputStream

A CachedOutoutStream.

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
CachedOutputStream(java.io.OutputStream os)
           
 
Method Summary
abstract  java.lang.Object getSink()
          Get the underlying object the stream uses as its place to store data.
 
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

CachedOutputStream

public CachedOutputStream(java.io.OutputStream os)
Method Detail

getSink

public abstract java.lang.Object getSink()
                                  throws java.io.IOException
Get the underlying object the stream uses as its place to store data.

This should normally not be used by other stream than is matching input stream of StreamCache, wich knows how to to cast this into a correct type.

Throws:
java.io.IOException


Copyright © 2000-2004 Backsource. All Rights Reserved.