Class Util
- java.lang.Object
-
- edu.upf.taln.dri.common.connector.pdfext.localappo.Util
-
public class Util extends Object
-
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
computeStringDigest(byte[] byteArrayInput)
Generate a string digest (MD5) from an array of bytesstatic void
deleteFolder(File folder)
Delete a folder together with its contentsstatic byte[]
readFully(InputStream stream)
Read a byte array from an input stream
-
-
-
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
-
-
-