org.apache.commons.vfs.provider
Class DefaultFileContent.FileContentOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by java.io.BufferedOutputStream
              extended by org.apache.commons.vfs.util.MonitorOutputStream
                  extended by org.apache.commons.vfs.provider.DefaultFileContent.FileContentOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable
Enclosing class:
DefaultFileContent

final class DefaultFileContent.FileContentOutputStream
extends MonitorOutputStream

An output stream for writing content.


Field Summary
private  FileObject file
           
 
Fields inherited from class java.io.BufferedOutputStream
buf, count
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
DefaultFileContent.FileContentOutputStream(FileObject file, java.io.OutputStream outstr)
           
 
Method Summary
 void close()
          Closes this output stream.
protected  void onClose()
          Called after this stream is closed.
 
Methods inherited from class java.io.BufferedOutputStream
flush, write, write
 
Methods inherited from class java.io.FilterOutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

private final FileObject file
Constructor Detail

DefaultFileContent.FileContentOutputStream

DefaultFileContent.FileContentOutputStream(FileObject file,
                                           java.io.OutputStream outstr)
Method Detail

close

public void close()
           throws FileSystemException
Closes this output stream.

Specified by:
close in interface java.io.Closeable
Overrides:
close in class MonitorOutputStream
Throws:
FileSystemException

onClose

protected void onClose()
                throws java.io.IOException
Called after this stream is closed.

Overrides:
onClose in class MonitorOutputStream
Throws:
java.io.IOException