|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.netarkivet.archive.arcrepository.bitpreservation.ChecksumEntry
public class ChecksumEntry
Method for storing a checksum along with its filename. This class also holds the method for extracting the results of a ChecksumJob into a list of ChecksumEntry, which is used by the BitPreservationDAO.
Constructor Summary | |
---|---|
ChecksumEntry(java.lang.String filename,
java.lang.String checksum)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Method for testing whether a ChecksumEntry is identical to another ChecksumEntry. |
java.lang.String |
getChecksum()
Retrieves the checksum. |
java.lang.String |
getFilename()
Retrieves the filename. |
int |
hashCode()
Retrieval of the hashCode of this instance. |
static java.util.List<ChecksumEntry> |
parseChecksumJob(java.io.File checksumjobOutput)
Method for changing the resulting file of a checksum job into a list of ChecksumEntry. |
java.lang.String |
toString()
Make human readable string. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ChecksumEntry(java.lang.String filename, java.lang.String checksum)
filename
- The name of the file.checksum
- The checksum of the file.Method Detail |
---|
public java.lang.String getFilename()
public java.lang.String getChecksum()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The object to evaluate whether it is identical to this
ChecksumEntry.
public java.lang.String toString()
toString
in class java.lang.Object
public static java.util.List<ChecksumEntry> parseChecksumJob(java.io.File checksumjobOutput)
checksumjobOutput
- The file with the ouput from a checksum job.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |