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 boolean
File is open or closedprotected RamFileObject
File. -
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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-