Package org.apache.commons.vfs2.provider
Class DefaultFileContent.FileContentOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.BufferedOutputStream
org.apache.commons.vfs2.util.MonitorOutputStream
org.apache.commons.vfs2.provider.DefaultFileContent.FileContentOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Enclosing class:
DefaultFileContent
An output stream for writing content.
-
Field Summary
FieldsFields inherited from class java.io.BufferedOutputStream
buf, countFields inherited from class java.io.FilterOutputStream
out -
Constructor Summary
ConstructorsConstructorDescriptionFileContentOutputStream(FileObject file, OutputStream outstr) FileContentOutputStream(FileObject file, OutputStream outstr, int bufferSize) -
Method Summary
Methods inherited from class org.apache.commons.vfs2.util.MonitorOutputStream
assertOpen, flush, write, write, write
-
Field Details
-
file
-
-
Constructor Details
-
FileContentOutputStream
FileContentOutputStream(FileObject file, OutputStream outstr) -
FileContentOutputStream
FileContentOutputStream(FileObject file, OutputStream outstr, int bufferSize)
-
-
Method Details
-
close
Closes this output stream.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classMonitorOutputStream- Throws:
FileSystemException
-
onClose
Called after this stream is closed.- Overrides:
onClosein classMonitorOutputStream- Throws:
IOException- if an error occurs.
-