Package io.permazen.util
Class Streams
java.lang.Object
io.permazen.util.Streams
Stream
utility methods.-
Method Summary
-
Method Details
-
exhaust
Read and discard everything from the givenStream
.This method also ensures that the stream is always closed, even if an exception is thrown.
- Parameters:
stream
- stream to exhaust- Throws:
IllegalArgumentException
- ifstream
is null
-