public static class NetTools.HttpInputStream extends InputStream
| Constructor and Description |
|---|
HttpInputStream(HttpURLConnection conn,
InputStream is,
String encoding) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
String |
getEncoding() |
void |
mark(int readlimit)
Despite the warning, do not make synchronized.
|
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset()
Despite the warning, do not make synchronized.
|
long |
skip(long n) |
public HttpInputStream(HttpURLConnection conn, InputStream is, String encoding)
public String getEncoding()
public int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic void mark(int readlimit)
mark in class InputStreamInputStream.mark(int)public boolean markSupported()
markSupported in class InputStreampublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic void reset()
throws IOException
reset in class InputStreamIOExceptionInputStream.mark(int)public long skip(long n)
throws IOException
skip in class InputStreamIOExceptionCopyright © 2017 etc.to. All rights reserved.