public class BufferedInputStream extends InputStream
BufferedInputStream. Marking is not
supported and any exception thrown by the underlying stream causes it to be
automatically closed. When the stream is closed, all read operations throw
an IOException.| Constructor and Description |
|---|
BufferedInputStream(InputStream in) |
BufferedInputStream(InputStream in,
int size) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
void |
disconnect() |
void |
fill()
Ensures at least one byte can be read, blocking if necessary.
|
boolean |
inputResume() |
boolean |
isReady() |
boolean |
isResumeSupported() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
int |
setBufferSize(int size)
Sets the size of the buffer, returning the actual size applied.
|
long |
skip(long n) |
mark, markSupported, read, resetpublic BufferedInputStream(InputStream in)
public BufferedInputStream(InputStream in, int size)
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic boolean isReady()
throws IOException
IOExceptionpublic int setBufferSize(int size)
public void fill()
throws IOException
EOFException - if nothing left to readIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic void disconnect()
public boolean inputResume()
public boolean isResumeSupported()
Copyright © 2006–2015 Cojen. All rights reserved.