@NotThreadSafe private final class FsStatistics.CountingReadOnlyFile extends DecoratingReadOnlyFile
delegate| Constructor and Description |
|---|
FsStatistics.CountingReadOnlyFile(ReadOnlyFile rof) |
| Modifier and Type | Method and Description |
|---|---|
int |
read()
Reads and returns the next byte or -1 if the end of the file has been
reached.
|
int |
read(byte[] b,
int off,
int len)
Reads up to
len bytes of data from this read only file into
the given array. |
close, getFilePointer, length, seek, toStringread, readFully, readFullyFsStatistics.CountingReadOnlyFile(ReadOnlyFile rof)
public int read()
throws IOException
ReadOnlyFileread in interface ReadOnlyFileread in class DecoratingReadOnlyFileIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
ReadOnlyFilelen bytes of data from this read only file into
the given array.
This method blocks until at least one byte of input is available.read in interface ReadOnlyFileread in class DecoratingReadOnlyFileb - The buffer to fill with data.off - The start offset of the data.len - The maximum number of bytes to read.-1 if there is
no more data because the end of the file has been reached.IOException - On any I/O related issue.Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.