Package au.com.acegi.xmlformat
Class IOUtil
java.lang.Object
au.com.acegi.xmlformat.IOUtil
Utility methods for dealing with I/O resources.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static longReturns a CRC32 of the given file.(package private) static longhash(InputStream in) Returns a CRC32 of the provided input stream.
-
Constructor Details
-
IOUtil
private IOUtil()
-
-
Method Details
-
hash
Returns a CRC32 of the provided input stream.- Parameters:
in- to CRC32- Returns:
- the CRC32 value
- Throws:
IOException- if unable to read the input stream
-
hash
Returns a CRC32 of the given file.- Parameters:
file- to CRC32- Returns:
- the CRC32 value
- Throws:
IOException- if unable to read the file
-