public class BlockingInputStream
extends java.io.InputStream
Modifier and Type | Field and Description |
---|---|
protected java.io.InputStream |
is |
Constructor and Description |
---|
BlockingInputStream(java.io.InputStream is) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
void |
mark(int readLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] bf)
We had to revert to byte per byte reading to keep
with slow network connections on one hand, without
missing the end-of-file.
|
int |
read(byte[] bf,
int s,
int l) |
void |
reset() |
long |
skip(long n) |
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
public void mark(int readLimit)
mark
in class java.io.InputStream
public boolean markSupported()
markSupported
in class java.io.InputStream
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] bf) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] bf, int s, int l) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public void reset() throws java.io.IOException
reset
in class java.io.InputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.