Class InputStreamClosingContext
java.lang.Object
java.io.InputStream
io.clonecloudstore.accessor.apache.client.internal.InputStreamClosingContext
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionInputStreamClosingContext
(InputStream original, org.apache.hc.core5.http.ClassicHttpResponse response, org.apache.hc.client5.http.impl.classic.CloseableHttpClient client) -
Method Summary
Modifier and TypeMethodDescriptionint
void
close()
void
mark
(int readlimit) boolean
int
read()
int
read
(byte[] b) int
read
(byte[] b, int off, int len) void
reset()
long
skip
(long n) long
transferTo
(OutputStream out) Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes
-
Constructor Details
-
InputStreamClosingContext
public InputStreamClosingContext(InputStream original, org.apache.hc.core5.http.ClassicHttpResponse response, org.apache.hc.client5.http.impl.classic.CloseableHttpClient client)
-
-
Method Details
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
close
- 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
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-
transferTo
- Overrides:
transferTo
in classInputStream
- Throws:
IOException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-