Package org.jacoco.core.internal
Class InputStreams
- java.lang.Object
-
- org.jacoco.core.internal.InputStreams
-
public final class InputStreams extends java.lang.Object
Utilities forInputStream
s.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
InputStreams()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
readFully(java.io.InputStream is)
Reads all bytes from an input stream into a byte array.
-
-
-
Method Detail
-
readFully
public static byte[] readFully(java.io.InputStream is) throws java.io.IOException
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:
java.io.IOException
- if an I/O error occurs
-
-