|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.io.InputStream
|
+--net.vattp.tunnel.HTTPInputStream
Untamed: Class to handle the suspension and shutdown messages.
| Field Summary | |
private long |
myLengthLimit
|
private InputStream |
myStream
|
| Fields inherited from class java.io.InputStream |
|
| Constructor Summary | |
(package private) |
HTTPInputStream(InputStream stream)
|
| Method Summary | |
int |
available()
Enabled: Returns the number of bytes that can be read from this input stream without blocking. |
void |
close()
Enabled: Closes this input stream and releases any system resources associated with the stream. |
int |
read()
Enabled: Reads the next byte of data from this input stream. |
int |
read(byte[] b,
int off,
int len)
Enabled: Reads up to len bytes of data from this input stream into an array of bytes. |
void |
setSize(long size)
Enabled: Set the stream size. |
| Methods inherited from class java.io.InputStream |
__printOn, getCryptoHash, mark, markSupported, read, readAvailable, reset, skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private final InputStream myStream
private long myLengthLimit
| Constructor Detail |
HTTPInputStream(InputStream stream)
| Method Detail |
public int available()
throws IOException
available in class InputStreamIOException - if an I/O error occurs.
public void close()
throws IOException
close in class InputStreamIOException - if an I/O error occurs.
public int read()
throws IOException
A subclass must provide an implementation of this method.
read in class InputStreamIOException - if an I/O error occurs.
public int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamb - the buffer into which the data is read.off - the start offset of the data.len - the maximum number of bytes read.
IOException - if an I/O error occurs.java.io.InputStream#read()public void setSize(long size)
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||