Package net.snowflake.client.core
Class HttpUtil.HttpInputStream
- java.lang.Object
-
- java.io.InputStream
-
- net.snowflake.client.core.HttpUtil.HttpInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- HttpUtil
public static final class HttpUtil.HttpInputStream extends InputStream
-
-
Constructor Summary
Constructors Constructor Description HttpInputStream(InputStream httpIn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()voidmark(int readlimit)booleanmarkSupported()intread()intread(byte[] b)intread(byte[] b, int off, int len)voidreset()longskip(long n)-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
HttpInputStream
public HttpInputStream(InputStream httpIn)
-
-
Method Detail
-
available
public final int available() throws IOException- Overrides:
availablein classInputStream- Throws:
IOException
-
read
public final int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
read
public final int read(byte[] b) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
read
public final int read(byte[] b, int off, int len) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
skip
public final long skip(long n) throws IOException- Overrides:
skipin classInputStream- Throws:
IOException
-
close
public final void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
mark
public void mark(int readlimit)
- Overrides:
markin classInputStream
-
reset
public void reset() throws IOException- Overrides:
resetin classInputStream- Throws:
IOException
-
markSupported
public final boolean markSupported()
- Overrides:
markSupportedin classInputStream
-
-