Package org.apache.commons.io.output
Class RandomAccessFileOutputStream
java.lang.Object
java.io.OutputStream
org.apache.commons.io.output.RandomAccessFileOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
An
OutputStream
that writes to a RandomAccessFile
.- Since:
- 2.18.0
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Constructs a newRandomAccessFileOutputStream.Builder
.void
close()
void
flush()
void
write
(int b) Methods inherited from class java.io.OutputStream
write, write
-
Method Details
-
builder
Constructs a newRandomAccessFileOutputStream.Builder
.- Returns:
- a new
RandomAccessFileOutputStream.Builder
.
-
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
- Specified by:
write
in classOutputStream
- Throws:
IOException
-