Class ResponseStream
java.lang.Object
java.io.InputStream
com.aeontronix.enhancedmule.tools.util.restclient.ResponseStream
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ResponseStream extends InputStream
-
Constructor Summary
Constructors Constructor Description ResponseStream(org.apache.http.client.methods.CloseableHttpResponse response) -
Method Summary
Modifier and Type Method Description intavailable()voidclose()longgetContentLength()longgetLastModified()voidmark(int readlimit)booleanmarkSupported()intread()intread(byte[] b)intread(byte[] b, int off, int len)voidreset()longskip(long n)
-
Constructor Details
-
ResponseStream
public ResponseStream(org.apache.http.client.methods.CloseableHttpResponse response) throws IOException- Throws:
IOException
-
-
Method Details
-
getContentLength
public long getContentLength() -
getLastModified
public long getLastModified() -
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
mark
public void mark(int readlimit)- Overrides:
markin classInputStream
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-