Class JimfsOutputStream
java.lang.Object
java.io.OutputStream
com.google.common.jimfs.JimfsOutputStream
- All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
OutputStream for writing to a RegularFile.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean(package private) RegularFileprivate final FileSystemStateprivate long -
Constructor Summary
ConstructorsConstructorDescriptionJimfsOutputStream(RegularFile file, boolean append, FileSystemState fileSystemState) -
Method Summary
Methods inherited from class OutputStream
flush, nullOutputStream
-
Field Details
-
file
RegularFile file -
pos
private long pos -
append
private final boolean append -
fileSystemState
-
-
Constructor Details
-
JimfsOutputStream
JimfsOutputStream(RegularFile file, boolean append, FileSystemState fileSystemState)
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
writeInternal
- Throws:
IOException
-
checkNotClosed
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
isOpen
private boolean isOpen()
-