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, count
Fields 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
Methods inherited from class java.io.OutputStream
nullOutputStream
-
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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classMonitorOutputStream
- Throws:
FileSystemException
-
onClose
Called after this stream is closed.- Overrides:
onClose
in classMonitorOutputStream
- Throws:
IOException
- if an error occurs.
-