Class Util


  • public class Util
    extends Object
    • Constructor Detail

      • Util

        public Util()
    • Method Detail

      • readFully

        public static byte[] readFully​(InputStream stream)
                                throws IOException
        Read a byte array from an input stream
        Parameters:
        stream -
        Returns:
        Throws:
        IOException
      • computeStringDigest

        public static String computeStringDigest​(byte[] byteArrayInput)
        Generate a string digest (MD5) from an array of bytes
        Parameters:
        byteArrayInput -
        Returns:
      • deleteFolder

        public static void deleteFolder​(File folder)
        Delete a folder together with its contents
        Parameters:
        folder -