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:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
- Enclosing class:
- DefaultFileContent
final class DefaultFileContent.FileContentOutputStream extends MonitorOutputStream
An output stream for writing content.
-
-
Field Summary
Fields Modifier and Type Field Description private FileObject
file
-
Constructor Summary
Constructors Constructor Description FileContentOutputStream(FileObject file, java.io.OutputStream outstr)
FileContentOutputStream(FileObject file, java.io.OutputStream outstr, int bufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes this output stream.protected void
onClose()
Called after this stream is closed.-
Methods inherited from class org.apache.commons.vfs2.util.MonitorOutputStream
assertOpen, flush, write, write, write
-
-
-
-
Field Detail
-
file
private final FileObject file
-
-
Constructor Detail
-
FileContentOutputStream
FileContentOutputStream(FileObject file, java.io.OutputStream outstr)
-
FileContentOutputStream
FileContentOutputStream(FileObject file, java.io.OutputStream outstr, int bufferSize)
-
-
Method Detail
-
close
public void close() throws FileSystemException
Closes this output stream.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classMonitorOutputStream
- Throws:
FileSystemException
-
onClose
protected void onClose() throws java.io.IOException
Called after this stream is closed.- Overrides:
onClose
in classMonitorOutputStream
- Throws:
java.io.IOException
- if an error occurs.
-
-