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 int
available()
void
close()
void
mark(int readlimit)
boolean
markSupported()
int
read()
int
read(byte[] b)
int
read(byte[] b, int off, int len)
void
reset()
long
skip(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:
available
in classInputStream
- Throws:
IOException
-
read
public final int read() throws IOException
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
public final int read(byte[] b) throws IOException
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
public final int read(byte[] b, int off, int len) throws IOException
- Overrides:
read
in classInputStream
- Throws:
IOException
-
skip
public final long skip(long n) throws IOException
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
close
public final void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
mark
public void mark(int readlimit)
- Overrides:
mark
in classInputStream
-
reset
public void reset() throws IOException
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
markSupported
public final boolean markSupported()
- Overrides:
markSupported
in classInputStream
-
-