public class HttpInputStream extends FilterInputStream
LineInputin| Constructor and Description |
|---|
HttpInputStream(InputStream in)
Constructor.
|
HttpInputStream(InputStream in,
int bufferSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
destroy() |
int |
getContentLength()
Get the content length.
|
OutputStream |
getExpectContinues() |
InputStream |
getFilterStream()
Get Filter InputStream.
|
InputStream |
getInputStream()
Get the raw stream.
|
HttpFields |
getTrailer() |
boolean |
isChunking()
Get chunking mode
|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
resetStream()
Reset the stream.
|
void |
setChunking()
Set chunking mode.
|
void |
setContentLength(int len)
Set the content length.
|
void |
setExpectContinues(OutputStream expectContinues) |
void |
setFilterStream(InputStream filter)
Set Filter InputStream.
|
long |
skip(long n) |
available, mark, markSupported, resetpublic HttpInputStream(InputStream in)
public HttpInputStream(InputStream in, int bufferSize)
public OutputStream getExpectContinues()
expectContinues()public void setExpectContinues(OutputStream expectContinues)
expectContinues - The expectContinues to set.public int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class FilterInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class FilterInputStreamIOExceptionpublic InputStream getInputStream()
public InputStream getFilterStream()
public void setFilterStream(InputStream filter)
public boolean isChunking()
public void setChunking()
throws IllegalStateException
IllegalStateException - Checking cannot be set if
a content length has been set.public void resetStream()
throws IllegalStateException
IllegalStateException - The stream cannot be reset if
there is some unread chunked input or a content length greater
than zero remaining.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionpublic void setContentLength(int len)
len - length.public int getContentLength()
public HttpFields getTrailer()
public void destroy()
Copyright © 2013. All rights reserved.