@ThreadSafe public abstract class AbstractReadOnlyFile extends Object implements ReadOnlyFile
| Constructor and Description |
|---|
AbstractReadOnlyFile() |
| Modifier and Type | Method and Description |
|---|---|
int |
read(byte[] b)
Equivalent to
read(b, 0, b.length). |
void |
readFully(byte[] b)
Equivalent to
readFully(b, 0, b.length). |
void |
readFully(byte[] buf,
int off,
int len)
Reads
len bytes into the given buffer at the given position. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getFilePointer, length, read, read, seekpublic final int read(byte[] b)
throws IOException
ReadOnlyFileread(b, 0, b.length).read in interface ReadOnlyFileIOExceptionpublic final void readFully(byte[] b)
throws IOException
ReadOnlyFilereadFully(b, 0, b.length).readFully in interface ReadOnlyFileIOExceptionpublic final void readFully(byte[] buf,
int off,
int len)
throws IOException
ReadOnlyFilelen bytes into the given buffer at the given position.readFully in interface ReadOnlyFilebuf - The buffer to fill with data.off - The start offset of the data.len - The number of bytes to read.IOException - On any I/O related issue.Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.