Package org.apache.pdfbox.io
Interface RandomAccessWrite
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Subinterfaces:
RandomAccess
- All Known Implementing Classes:
RandomAccessBuffer
,RandomAccessFile
,ScratchFileBuffer
An interface allowing random access write operations.
-
Method Summary
-
Method Details
-
write
Write a byte to the stream.- Parameters:
b
- The byte to write.- Throws:
IOException
- If there is an IO error while writing.
-
write
Write 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
Write 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
Clears all data of the buffer.- Throws:
IOException
-