org.jacoco.core.internal
Class InputStreams
java.lang.Object
org.jacoco.core.internal.InputStreams
public final class InputStreams
- extends Object
Utilities for InputStreams.
|
Method Summary |
static byte[] |
readFully(InputStream is)
Reads all bytes from an input stream into a byte array. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
readFully
public static byte[] readFully(InputStream is)
throws IOException
- Reads all bytes from an input stream into a byte array. The provided
InputStream 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
Copyright © 2009–2023 Mountainminds GmbH & Co. KG. All rights reserved.