Package org.apache.commons.io.output
Class RandomAccessFileOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.apache.commons.io.output.RandomAccessFileOutputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public final class RandomAccessFileOutputStream extends java.io.OutputStream
AnOutputStream
that writes to aRandomAccessFile
.- Since:
- 2.18.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RandomAccessFileOutputStream.Builder
Builds a newRandomAccessFileOutputStream
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RandomAccessFileOutputStream.Builder
builder()
Constructs a newRandomAccessFileOutputStream.Builder
.void
close()
void
flush()
void
write(int b)
-
-
-
Method Detail
-
builder
public static RandomAccessFileOutputStream.Builder builder()
Constructs a newRandomAccessFileOutputStream.Builder
.- Returns:
- a new
RandomAccessFileOutputStream.Builder
.
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException
- Specified by:
flush
in interfacejava.io.Flushable
- Overrides:
flush
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
write
public void write(int b) throws java.io.IOException
- Specified by:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
-