Package common.utils

Class StreamUtils

java.lang.Object
common.utils.StreamUtils

public class StreamUtils extends Object
Collection of utilities for working with streams.
Author:
woodser
  • Constructor Details

    • StreamUtils

      public StreamUtils()
  • Method Details

    • bytesToStream

      public static InputStream bytesToStream(byte[] bytes)
      Converts a byte array to an input stream.
      Parameters:
      bytes - is the byte[] to convert to an input stream
      Returns:
      InputStream is the input stream initialized from the byte array