Class InputStreams

java.lang.Object
org.jacoco.core.internal.InputStreams

public final class InputStreams extends Object
Utilities for InputStreams.
  • Constructor Details

    • InputStreams

      private InputStreams()
  • Method Details

    • 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