Class RamFileOutputStream
java.lang.Object
java.io.OutputStream
org.apache.commons.vfs2.provider.ram.RamFileOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
OutputStream to a RamFile.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected byte[]buffer.protected booleanFile is open or closedprotected RamFileObjectFile. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
write
-
Field Details
-
file
File. -
buffer1
buffer. -
closed
File is open or closed
-
-
Constructor Details
-
RamFileOutputStream
Constructs a new instance.- Parameters:
file- The base file.
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-