Package au.com.acegi.xmlformat
Class IOUtil
- java.lang.Object
-
- au.com.acegi.xmlformat.IOUtil
-
final class IOUtil extends java.lang.ObjectUtility methods for dealing with I/O resources.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateIOUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static longhash(java.io.File file)Returns a CRC32 of the given file.(package private) static longhash(java.io.InputStream in)Returns a CRC32 of the provided input stream.
-
-
-
Method Detail
-
hash
static long hash(java.io.InputStream in) throws java.io.IOExceptionReturns a CRC32 of the provided input stream.- Parameters:
in- to CRC32- Returns:
- the CRC32 value
- Throws:
java.io.IOException- if unable to read the input stream
-
hash
static long hash(java.io.File file) throws java.io.IOExceptionReturns a CRC32 of the given file.- Parameters:
file- to CRC32- Returns:
- the CRC32 value
- Throws:
java.io.IOException- if unable to read the file
-
-