edu.ucsb.nceas.metacat.restservice.multipart

## Class CheckedFile

- java.lang.Object
- - java.io.File
  - - edu.ucsb.nceas.metacat.restservice.multipart.CheckedFile

- All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<java.io.File>

      public class CheckedFile
      extends java.io.File

  A file object with the expected checksum
  Author:
    tao
  See Also:
    Serialized Form

- - ### Field Summary

    - ### Fields inherited from class java.io.File

      `pathSeparator, pathSeparatorChar, separator, separatorChar`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `CheckedFile(java.lang.String path, org.dataone.service.types.v1.Checksum checksum)` Constructor

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `org.dataone.service.types.v1.Checksum` | `getChecksum()` Get the checksum of this file

    - ### Methods 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`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### CheckedFile

          public CheckedFile(java.lang.String path,
                             org.dataone.service.types.v1.Checksum checksum)

      Constructor
      Parameters:
        `path` -
        `checksum` -

  - ### Method Detail

    - #### getChecksum

          public org.dataone.service.types.v1.Checksum getChecksum()

      Get the checksum of this file
      Returns:
        the checksum of this file

Copyright © 2023 Regents of the University of California. All Rights Reserved.