Package io.deephaven.extensions.barrage
Class ConsecutiveDrainableStreams
java.lang.Object
java.io.InputStream
io.deephaven.extensions.barrage.util.DefensiveDrainable
io.deephaven.extensions.barrage.ConsecutiveDrainableStreams
- All Implemented Interfaces:
io.grpc.Drainable,Closeable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintA defensive drainable needs to override available.voidclose()intdrainTo(OutputStream outputStream) Methods inherited from class io.deephaven.extensions.barrage.util.DefensiveDrainable
capture, read, read, read, skipMethods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
-
Constructor Details
-
ConsecutiveDrainableStreams
-
-
Method Details
-
drainTo
- Throws:
IOException
-
available
Description copied from class:DefensiveDrainableA defensive drainable needs to override available. As opposed to the genericInputStream, this method must return the exact amount available.- Overrides:
availablein classDefensiveDrainable- Returns:
- the exact amount available
- Throws:
IOException- if an I/O exception occursSizeException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-