Inherits java::io::OutputStream.
Public Member Functions | |
RandomAccessOutputStream (RandomAccessFile f) | |
Method to set the backend RandomAccessFile for writing. | |
void | write (int b) throws IOException |
Method implementing write one byte at a time. | |
void | write (byte[] b) throws IOException |
Method to write a byte array to the underlying repository file. | |
void | write (byte[] b, int off, int len) throws IOException |
Method to write a byte array of len bytes to the underlying repository file starting at offset off. | |
Protected Attributes | |
RandomAccessFile | underlying |
This class is intended to be used for writing to the backend repository and not general CCN stream use.
RandomAccessFile
org.ccnx.ccn.impl.repo.RandomAccessOutputStream.RandomAccessOutputStream | ( | RandomAccessFile | f | ) |
Method to set the backend RandomAccessFile for writing.
f | Backend RandomAccessFile |
void org.ccnx.ccn.impl.repo.RandomAccessOutputStream.write | ( | int | b | ) | throws IOException |
Method implementing write one byte at a time.
b | byte to be written |
IOException |
RandomAccessFile
void org.ccnx.ccn.impl.repo.RandomAccessOutputStream.write | ( | byte[] | b | ) | throws IOException |
Method to write a byte array to the underlying repository file.
b | byte[] to write to the file |
IOException |
RandomAccessFile
void org.ccnx.ccn.impl.repo.RandomAccessOutputStream.write | ( | byte[] | b, | |
int | off, | |||
int | len | |||
) | throws IOException |
Method to write a byte array of len bytes to the underlying repository file starting at offset off.
b | byte[] to write to the file | |
off | Offset to start writing in the file | |
len | number of bytes to write from the byte[] b |
IOException |
RandomAccessFile