Package io.airlift.http.client
Class GatheringByteArrayInputStream
- java.lang.Object
-
- java.io.InputStream
-
- io.airlift.http.client.GatheringByteArrayInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
@ThreadSafe public class GatheringByteArrayInputStream extends InputStream
-
-
Constructor Summary
Constructors Constructor Description GatheringByteArrayInputStream(List<byte[]> buffers, long totalBytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intread()intread(byte[] buffer)intread(byte[] buffer, int offset, int length)longskip(long n)-
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, transferTo
-
-
-
-
Constructor Detail
-
GatheringByteArrayInputStream
public GatheringByteArrayInputStream(List<byte[]> buffers, long totalBytes)
-
-
Method Detail
-
read
public int read(byte[] buffer)
- Overrides:
readin classInputStream
-
read
public int read()
- Specified by:
readin classInputStream
-
skip
public long skip(long n)
- Overrides:
skipin classInputStream
-
read
public int read(byte[] buffer, int offset, int length)- Overrides:
readin classInputStream
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream
-
-