Package com.tom_roush.pdfbox.io
Interface RandomAccessWrite
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Subinterfaces:
RandomAccess
- All Known Implementing Classes:
RandomAccessBuffer,RandomAccessFile
public interface RandomAccessWrite extends Closeable
An interface allowing random access write operations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()Clears all data of the buffer.voidwrite(byte[] b)Write a buffer of data to the stream.voidwrite(byte[] b, int offset, int length)Write a buffer of data to the stream.voidwrite(int b)Write a byte to the stream.
-
-
-
Method Detail
-
write
void write(int b) throws IOExceptionWrite a byte to the stream.- Parameters:
b- The byte to write.- Throws:
IOException- If there is an IO error while writing.
-
write
void write(byte[] b) throws IOExceptionWrite a buffer of data to the stream.- Parameters:
b- The buffer to get the data from.- Throws:
IOException- If there is an error while writing the data.
-
write
void write(byte[] b, int offset, int length) throws IOExceptionWrite a buffer of data to the stream.- Parameters:
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.- Throws:
IOException- If there is an error while writing the data.
-
clear
void clear() throws IOExceptionClears all data of the buffer.- Throws:
IOException
-
-