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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Constructs a newRandomAccessFileOutputStream.Builder.voidclose()voidflush()Gets the underlying random access file.voidwrite(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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
getRandomAccessFile
Gets the underlying random access file.- Returns:
- the underlying random access file.
- Since:
- 2.19.0
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-