|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.zip.CRC32
com.foxsmart.ic.io.CRC32File
public class CRC32File
This class provides the ability to checksum a file. It provides the same functionality as CRC32File, but has been extended for file support.
| Constructor Summary | |
|---|---|
CRC32File()
Constructs an CRC32File object |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Test Driver. |
void |
update(java.io.File file)
Updates the checksum based on the passed in File. |
void |
update(java.lang.String filename)
Updates the checksum based on the passed in Filename. |
| Methods inherited from class java.util.zip.CRC32 |
|---|
getValue, reset, update, update, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CRC32File()
| Method Detail |
|---|
public void update(java.io.File file)
throws java.io.IOException,
java.net.UnknownServiceException,
java.io.FileNotFoundException
file - The file to checksum.
java.io.FileNotFoundException - if the file specified could not be found
java.io.IOException - if the input stream could not be opened to the file.
java.net.UnknownServiceException - if the URL protocol does not support input
public void update(java.lang.String filename)
throws java.io.IOException,
java.net.UnknownServiceException,
java.io.FileNotFoundException
filename - The filename of the file to checksum.
java.io.FileNotFoundException - if the file specified could not be found
java.io.IOException - if the input stream could not be opened to the file.
java.net.UnknownServiceException - if the URL protocol does not support inputpublic static void main(java.lang.String[] args)
args - the arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||