java.lang.AutoCloseable, java.io.Closeablepublic interface SequentialRead
extends java.io.Closeable
| Modifier and Type | Method | Description |
|---|---|---|
int |
read() |
Read a single byte of data.
|
int |
read(byte[] b) |
Read a buffer of data.
|
int |
read(byte[] b,
int offset,
int length) |
Read a buffer of data.
|
int read() throws java.io.IOException
java.io.IOException - If there is an error while reading the data.int read(byte[] b) throws java.io.IOException
b - The buffer to write the data to.java.io.IOException - If there was an error while reading the data.int read(byte[] b,
int offset,
int length)
throws java.io.IOException
b - The buffer to write the data to.offset - Offset into the buffer to start writing.length - The amount of data to attempt to read.java.io.IOException - If there was an error while reading the data.Copyright © 2002–2018. All rights reserved.