| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nothome.delta.RandomAccessFileSeekableSource
public class RandomAccessFileSeekableSource
Wraps a random access file.
| Constructor Summary | |
|---|---|
| RandomAccessFileSeekableSource(RandomAccessFile raf)Constructs a new RandomAccessFileSeekableSource. | |
| Method Summary | |
|---|---|
|  void | close() | 
|  long | length() | 
|  int | read(byte[] b,
     int off,
     int len) | 
|  int | read(ByteBuffer bb)Reads up to Buffer.remaining()bytes from the source,
 returning the number of bytes read, or -1 if no bytes were read
 and EOF was reached. | 
|  void | seek(long pos)Sets the position for the next SeekableSource.read(ByteBuffer). | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public RandomAccessFileSeekableSource(RandomAccessFile raf)
raf - | Method Detail | 
|---|
public void seek(long pos)
          throws IOException
SeekableSourceSeekableSource.read(ByteBuffer).
seek in interface SeekableSourceIOException
public int read(byte[] b,
                int off,
                int len)
         throws IOException
IOException
public long length()
            throws IOException
IOException
public void close()
           throws IOException
close in interface CloseableIOException
public int read(ByteBuffer bb)
         throws IOException
SeekableSourceBuffer.remaining() bytes from the source,
 returning the number of bytes read, or -1 if no bytes were read
 and EOF was reached.
read in interface SeekableSourceIOException| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||