Class CheckedFile
java.lang.Object
java.io.File
edu.ucsb.nceas.metacat.restservice.multipart.CheckedFile
- All Implemented Interfaces:
Serializable
,Comparable<File>
A file object with the expected checksum
- Author:
- tao
- See Also:
-
Field Summary
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
-
Constructor Summary
ConstructorDescriptionCheckedFile
(String path, org.dataone.service.types.v1.Checksum checksum) Constructor -
Method Summary
Modifier and TypeMethodDescriptionorg.dataone.service.types.v1.Checksum
Get the checksum of this fileMethods inherited from class java.io.File
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURL
-
Constructor Details
-
CheckedFile
Constructor- Parameters:
path
-checksum
-
-
-
Method Details
-
getChecksum
public org.dataone.service.types.v1.Checksum getChecksum()Get the checksum of this file- Returns:
- the checksum of this file
-