public final class InputStreamForHttp extends InputStream
Constructor and Description |
---|
InputStreamForHttp(InputStream is)
Create InputStreamForHttp instance.
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
void |
closeQuietly()
Close without causing any exception.
|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
String |
readAsciiLine()
Read ascii line, read http header line.
|
void |
setForceEOF()
Set eof.
|
mark, markSupported, read, reset, skip
public InputStreamForHttp(InputStream is)
is
- public void setForceEOF()
public String readAsciiLine() throws IOException
IOException
public int available() throws IOException
available
in class InputStream
IOException
InputStream.available()
public int read() throws IOException
read
in class InputStream
IOException
InputStream.read()
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
InputStream.read(byte[], int, int)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
InputStream.close()
public void closeQuietly()
Copyright © 2013. All Rights Reserved.