Stream utilities
The StreamUtils
utility class provides functionality for working with streams and related classes.
It consuming the data from streams in various ways. These include like reading all bytes from a stream, copying streams, skipping bytes from them.
The class allows handling classes like MessageDigest
and Signature
as output streams, easing their usage.
Other wrappers that synchronize the access to streams, or prevents their closing are also available.
The class also provides various null reading and writing streams that doesn't do anything.