org.backsource.utils.io
Class FileCachedOutputStream

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.FileCachedOutputStream

public class FileCachedOutputStream
extends CachedOutputStream

Stream that writes to a file.

It is up to the cache implementation how the file is created.

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
FileCachedOutputStream(java.io.File file)
           
 
Method Summary
 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

FileCachedOutputStream

public FileCachedOutputStream(java.io.File file)
                       throws java.io.FileNotFoundException
Method Detail

getSink

public java.lang.Object getSink()
                         throws java.io.IOException
Description copied from class: CachedOutputStream
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.

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


Copyright © 2000-2004 Backsource. All Rights Reserved.