public abstract class InputStream extends Object
Constructor and Description |
---|
InputStream()
InputStream
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
void |
mark(int i) |
boolean |
markSupported() |
abstract int |
read() |
int |
read(byte[] abyte0) |
int |
read(byte[] arr,
int ofs,
int len)
Read byte data until there is no more available.
|
void |
reset() |
long |
skip(long l) |
public int available() throws IOException
IOException
- ?public void close() throws IOException
IOException
- ?public void mark(int i)
i
- ?public boolean markSupported()
public abstract int read() throws IOException
IOException
- ?public int read(byte[] abyte0) throws IOException
abyte0
- ?IOException
- ?public int read(byte[] arr, int ofs, int len) throws IOException
arr
- array to receive bytesofs
- offset into the array where data is placedlen
- maximum count of bytes to readIOException
- if the stream is not availablepublic void reset() throws IOException
IOException
- ?public long skip(long l) throws IOException
l
- ?IOException
- ?