public class HTTPInputStream extends RestoreableInputStream implements SupportsIsStreamClosed
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
chunked |
protected org.ws4d.java.communication.protocol.http.HTTPChunkHeader |
chunkedheader |
| Constructor and Description |
|---|
HTTPInputStream(java.io.InputStream in,
boolean secure,
java.lang.String encoding,
long size)
Creates a HTTP input stream.
|
HTTPInputStream(java.io.InputStream in,
boolean secure,
java.lang.String encoding,
long size,
Sync notify)
Creates a HTTP input stream with synchronization.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
int |
discardPendingBytes()
Discard pending bytes.
|
boolean |
equals(java.lang.Object obj) |
long |
getCurrentSize() |
java.lang.String |
getEncoding()
Returns the encoding for this stream.
|
int |
hashCode() |
boolean |
isClosed() |
boolean |
isStreamClosed() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
setRestoreBuffer(byte[] reBu,
int startIndex,
int length) |
void |
setRestoreBufferClone(byte[] reBu,
int startIndex,
int length) |
protected org.ws4d.java.communication.protocol.http.HTTPChunkHeader chunkedheader
protected boolean chunked
public HTTPInputStream(java.io.InputStream in,
boolean secure,
java.lang.String encoding,
long size)
public HTTPInputStream(java.io.InputStream in,
boolean secure,
java.lang.String encoding,
long size,
Sync notify)
public void setRestoreBuffer(byte[] reBu,
int startIndex,
int length)
setRestoreBuffer in class RestoreableInputStreampublic void setRestoreBufferClone(byte[] reBu,
int startIndex,
int length)
setRestoreBufferClone in class RestoreableInputStreampublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic boolean isClosed()
throws java.io.IOException
java.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int discardPendingBytes()
throws java.io.IOException
java.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic java.lang.String getEncoding()
public long getCurrentSize()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean isStreamClosed()
isStreamClosed in interface SupportsIsStreamClosed