Package com.google.common.jimfs
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) RegularFile
private final FileSystemState
private long
-
Constructor Summary
ConstructorsConstructorDescriptionJimfsOutputStream
(RegularFile file, boolean append, FileSystemState fileSystemState) -
Method Summary
Methods inherited from class java.io.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:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
writeInternal
- Throws:
IOException
-
checkNotClosed
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
isOpen
private boolean isOpen()
-