Class FileMirror

  • All Implemented Interfaces:
    BaseContainerInterface, java.io.Serializable

    public class FileMirror
    extends java.lang.Object
    implements java.io.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 Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Boolean isDirectory  
      protected long length  
      protected java.lang.String name  
      protected java.lang.String parent  
      protected java.lang.String relativePath  
    • Constructor Summary

      Constructors 
      Constructor Description
      FileMirror​(java.io.File file, java.io.File root)  
    • Field Detail

      • name

        protected final java.lang.String name
      • isDirectory

        protected final java.lang.Boolean isDirectory
      • relativePath

        protected final java.lang.String relativePath
      • parent

        protected final java.lang.String parent
      • length

        protected final long length
    • Constructor Detail

      • FileMirror

        public FileMirror​(java.io.File file,
                          java.io.File root)
    • Method Detail

      • getName

        public java.lang.String getName()
      • isDirectory

        public java.lang.Boolean isDirectory()
      • getRelativePath

        public java.lang.String getRelativePath()
      • getParent

        public java.lang.String getParent()
      • length

        public long length()
      • equals

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