Class FileMirror

java.lang.Object
gov.nasa.arc.pds.tools.container.FileMirror
All Implemented Interfaces:
BaseContainerInterface, Serializable

public class FileMirror
extends Object
implements Serializable, BaseContainerInterface
A representation of a File object when the file is no longer accessible. For example, an applet may collect information about files on a user's system. Analysis of these files may be necessary once the results are sent back to a server. In order to do so, certain file characteristics need to be burned in (such as whether the file is a directory).
Version:
$Revision: $
Author:
jagander
See Also:
Serialized Form
  • Field Details

    • name

      protected final String name
    • isDirectory

      protected final Boolean isDirectory
    • relativePath

      protected final String relativePath
    • parent

      protected final String parent
    • length

      protected final long length
  • Constructor Details

    • FileMirror

      public FileMirror​(File file, File root)
  • Method Details

    • getName

      public String getName()
    • isDirectory

      public Boolean isDirectory()
    • getRelativePath

      public String getRelativePath()
    • getParent

      public String getParent()
    • length

      public long length()
    • equals

      public boolean equals​(Object obj)
      Overrides:
      equals in class Object