public interface SequentialFile extends Closeable
| Modifier and Type | Method and Description |
|---|---|
int |
read(int atMost,
SliceOutput destination)
Read up to "atMost" bytes from the file.
|
void |
skip(long n)
Skips over and discards
n bytes of data from the
input stream. |
void skip(long n) throws IOException
n bytes of data from the
input stream.n - the number of bytes to be skipped.IOException - if n is negative, if the stream does not
support seek, or if an I/O error occurs.int read(int atMost,
SliceOutput destination)
throws IOException
atMost - the maximum number of bytes to read.destination - data destination-1 if there is no more data because the end of
the stream has been reached.IOException - If the first byte cannot be read for any reason
other than end of file, or if the input stream has been closed, or if
some other I/O error occurs.Copyright © 2011–2020. All rights reserved.