Class GridFile

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

    @Deprecated
    public class GridFile
    extends java.io.File
    Deprecated.
    since 10.0
    Subclass of File to iterate through directories and files in a grid
    Author:
    Bela Ban, Marko Luksa
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  GridFile.Metadata
      Deprecated.
       
    • Method Detail

      • getName

        public java.lang.String getName()
        Deprecated.
      • getPath

        public java.lang.String getPath()
        Deprecated.
        Returns path of this file. To avoid issues arising from file separator differences between different operative systems, the path returned always uses Unix-like path separator, '/' character. Any client code calling this method should bear that if disecting the path.
        Returns:
        String containing path of file.
      • getAbsolutePath

        public java.lang.String getAbsolutePath()
        Deprecated.
      • getAbsoluteFile

        public java.io.File getAbsoluteFile()
        Deprecated.
      • getCanonicalPath

        public java.lang.String getCanonicalPath()
                                          throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • getCanonicalFile

        public java.io.File getCanonicalFile()
                                      throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • isAbsolute

        public boolean isAbsolute()
        Deprecated.
      • renameTo

        public boolean renameTo​(java.io.File dest)
        Deprecated.
      • deleteOnExit

        public void deleteOnExit()
        Deprecated.
      • length

        public long length()
        Deprecated.
      • getChunkSize

        public int getChunkSize()
        Deprecated.
        Guaranteed to be a power of two
      • createNewFile

        public boolean createNewFile()
                              throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • delete

        public boolean delete()
        Deprecated.
      • mkdir

        public boolean mkdir()
        Deprecated.
      • mkdirs

        public boolean mkdirs()
        Deprecated.
      • exists

        public boolean exists()
        Deprecated.
      • getParent

        public java.lang.String getParent()
        Deprecated.
      • getParentFile

        public java.io.File getParentFile()
        Deprecated.
      • lastModified

        public long lastModified()
        Deprecated.
      • setLastModified

        public boolean setLastModified​(long time)
        Deprecated.
      • list

        public java.lang.String[] list()
        Deprecated.
      • list

        public java.lang.String[] list​(java.io.FilenameFilter filter)
        Deprecated.
      • listFiles

        public java.io.File[] listFiles()
        Deprecated.
      • listFiles

        public java.io.File[] listFiles​(java.io.FilenameFilter filter)
        Deprecated.
      • listFiles

        public java.io.File[] listFiles​(java.io.FileFilter filter)
        Deprecated.
      • isDirectory

        public boolean isDirectory()
        Deprecated.
      • isFile

        public boolean isFile()
        Deprecated.
      • initChunkSizeFromMetadata

        protected void initChunkSizeFromMetadata()
        Deprecated.
      • _listFiles

        protected java.io.File[] _listFiles​(java.lang.Object filter)
        Deprecated.
      • _list

        protected java.lang.String[] _list​(java.lang.Object filter)
        Deprecated.
      • isChildOf

        protected static boolean isChildOf​(java.lang.String parent,
                                           java.lang.String child)
        Deprecated.
        Verifies whether child is a child (dir or file) of parent
        Parameters:
        parent -
        child -
        Returns:
        True if child is a child, false otherwise
      • filename

        protected static java.lang.String filename​(java.lang.String fullPath)
        Deprecated.
      • checkParentDirs

        protected boolean checkParentDirs​(java.lang.String path,
                                          boolean createIfAbsent)
                                   throws java.io.IOException
        Deprecated.
        Checks whether the parent directories are present (and are directories). If createIfAbsent is true, creates missing dirs
        Parameters:
        path -
        createIfAbsent -
        Returns:
        Throws:
        java.io.IOException
      • equals

        public boolean equals​(java.lang.Object obj)
        Deprecated.
      • canRead

        public boolean canRead()
        Deprecated.
      • canWrite

        public boolean canWrite()
        Deprecated.
      • isHidden

        public boolean isHidden()
        Deprecated.
      • canExecute

        public boolean canExecute()
        Deprecated.
      • compareTo

        public int compareTo​(java.io.File file)
        Deprecated.
      • hashCode

        public int hashCode()
        Deprecated.
      • toString

        public java.lang.String toString()
        Deprecated.
      • toURL

        public java.net.URL toURL()
                           throws java.net.MalformedURLException
        Deprecated.
        Throws:
        java.net.MalformedURLException
      • toURI

        public java.net.URI toURI()
        Deprecated.
      • setReadOnly

        public boolean setReadOnly()
        Deprecated.
      • setWritable

        public boolean setWritable​(boolean writable,
                                   boolean ownerOnly)
        Deprecated.
      • setWritable

        public boolean setWritable​(boolean writable)
        Deprecated.
      • setReadable

        public boolean setReadable​(boolean readable,
                                   boolean ownerOnly)
        Deprecated.
      • setReadable

        public boolean setReadable​(boolean readable)
        Deprecated.
      • setExecutable

        public boolean setExecutable​(boolean executable,
                                     boolean ownerOnly)
        Deprecated.
      • setExecutable

        public boolean setExecutable​(boolean executable)
        Deprecated.
      • getTotalSpace

        public long getTotalSpace()
        Deprecated.
      • getFreeSpace

        public long getFreeSpace()
        Deprecated.
      • getUsableSpace

        public long getUsableSpace()
        Deprecated.