Package org.jacoco.core.internal
Class InputStreams
java.lang.Object
org.jacoco.core.internal.InputStreams
Utilities for
InputStream
s.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
readFully
(InputStream is) Reads all bytes from an input stream into a byte array.
-
Constructor Details
-
InputStreams
private InputStreams()
-
-
Method Details
-
readFully
Reads all bytes from an input stream into a byte array. The providedInputStream
is not closed by this method.- Parameters:
is
- the input stream to read from- Returns:
- a byte array containing all the bytes from the stream
- Throws:
IOException
- if an I/O error occurs
-