public abstract class InputStream extends Object
| Constructor and Description |
|---|
InputStream()
InputStream
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
void |
mark(int readlimit)
Marks the current position in this input stream.
|
boolean |
markSupported()
Tests if this input stream supports the mark and reset methods
|
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()
Repositions this stream to the position at the time the mark method was last called.
|
long |
skip(long l) |
public int available()
throws IOException
IOException - ?public void close()
throws IOException
IOException - ?public void mark(int readlimit)
readlimit - placeholder unusedpublic 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 - if not supportedpublic long skip(long l)
throws IOException
l - ?IOException - ?