org.ccnx.ccn.impl.repo.RandomAccessOutputStream Class Reference

RandomAccessOutputStream extends OutputStream to allow writing to the RandomAccessFile that is the backend of the repository. More...

List of all members.

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

Detailed Description

RandomAccessOutputStream extends OutputStream to allow writing to the RandomAccessFile that is the backend of the repository.

This class is intended to be used for writing to the backend repository and not general CCN stream use.

See also:
OutputStream
RandomAccessFile

Constructor & Destructor Documentation

org.ccnx.ccn.impl.repo.RandomAccessOutputStream.RandomAccessOutputStream ( RandomAccessFile  f  ) 

Method to set the backend RandomAccessFile for writing.

Parameters:
f Backend RandomAccessFile

Member Function Documentation

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.

Parameters:
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
Returns:
void
Exceptions:
IOException 
See also:
OutputStream
RandomAccessFile
void org.ccnx.ccn.impl.repo.RandomAccessOutputStream.write ( byte[]  b  )  throws IOException

Method to write a byte array to the underlying repository file.

Parameters:
b byte[] to write to the file
Returns:
void
Exceptions:
IOException 
See also:
OutputStream
RandomAccessFile
void org.ccnx.ccn.impl.repo.RandomAccessOutputStream.write ( int  b  )  throws IOException

Method implementing write one byte at a time.

Parameters:
b byte to be written
Returns:
void
Exceptions:
IOException 
See also:
OutputStream
RandomAccessFile

The documentation for this class was generated from the following file:
Generated on Fri May 13 16:27:40 2011 for Content-Centric Networking in Java by  doxygen 1.6.3