Top Description Methods
org.apache.pdfbox.io

public Interface RandomAccessWrite

extends Closeable
Known Direct Subinterfaces
org.apache.pdfbox.io.RandomAccess
Imports
java.io.Closeable, .IOException

An interface allowing random access write operations.

Method Summary

Modifier and TypeMethod and Description
public void
clear()

Clears all data of the buffer.

public void
write(int
The byte to write.
b
)

Write a byte to the stream.

public void
write(byte[]
The buffer to get the data from.
b
)

Write a buffer of data to the stream.

public void
write(byte[]
The buffer to get the data from.
b
,
int
An offset into the buffer to get the data from.
offset
,
int
The length of data to write.
length
)

Write a buffer of data to the stream.

Inherited from java.io.Closeable:
close

Method Detail

clearback to summary
public void clear() throws IOException

Clears all data of the buffer.

Exceptions
IOException:
If there is an error while clearing the data.
writeback to summary
public void write(int b) throws IOException

Write a byte to the stream.

Parameters
b:int

The byte to write.

Exceptions
IOException:
If there is an IO error while writing.
writeback to summary
public void write(byte[] b) throws IOException

Write a buffer of data to the stream.

Parameters
b:byte[]

The buffer to get the data from.

Exceptions
IOException:
If there is an error while writing the data.
writeback to summary
public void write(byte[] b, int offset, int length) throws IOException

Write a buffer of data to the stream.

Parameters
b:byte[]

The buffer to get the data from.

offset:int

An offset into the buffer to get the data from.

length:int

The length of data to write.

Exceptions
IOException:
If there is an error while writing the data.