java.lang.AutoCloseable
, java.io.Closeable
RandomAccess
RandomAccessBuffer
, RandomAccessFile
public interface RandomAccessWrite
extends java.io.Closeable
Modifier and Type | Method | Description |
---|---|---|
void |
clear() |
Clears all data of the buffer.
|
void |
write(byte[] b) |
Write a buffer of data to the stream.
|
void |
write(byte[] b,
int offset,
int length) |
Write a buffer of data to the stream.
|
void |
write(int b) |
Write a byte to the stream.
|
void write(int b) throws java.io.IOException
b
- The byte to write.java.io.IOException
- If there is an IO error while writing.void write(byte[] b) throws java.io.IOException
b
- The buffer to get the data from.java.io.IOException
- If there is an error while writing the data.void write(byte[] b, int offset, int length) throws java.io.IOException
b
- The buffer to get the data from.offset
- An offset into the buffer to get the data from.length
- The length of data to write.java.io.IOException
- If there is an error while writing the data.void clear() throws java.io.IOException
java.io.IOException
Copyright © 2002–2018. All rights reserved.