org.apache.commons.vfs.provider
Class DefaultFileContent.FileContentOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.BufferedOutputStream
org.apache.commons.vfs.util.MonitorOutputStream
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.
| Fields inherited from class java.io.BufferedOutputStream |
buf, count |
| Fields inherited from class java.io.FilterOutputStream |
out |
|
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 |
file
private final FileObject file
DefaultFileContent.FileContentOutputStream
DefaultFileContent.FileContentOutputStream(FileObject file,
java.io.OutputStream outstr)
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