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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintA defensive drainable needs to override available.voidclose()intdrainTo(OutputStream outputStream) Methods inherited from class io.deephaven.extensions.barrage.util.DefensiveDrainablecapture, read, read, read, skipMethods inherited from class java.io.InputStreammark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
- 
Constructor Details- 
ConsecutiveDrainableStreams
 
- 
- 
Method Details- 
drainTo- Throws:
- IOException
 
- 
availableDescription 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 class- DefensiveDrainable
- Returns:
- the exact amount available
- Throws:
- IOException- if an I/O exception occurs
- SizeException
 
- 
close- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- InputStream
- Throws:
- IOException
 
 
-