Class GridFile

    • Method Detail

      • getPath

        public 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.
        Overrides:
        getPath in class File
        Returns:
        String containing path of file.
      • isAbsolute

        public boolean isAbsolute()
        Deprecated.
        Overrides:
        isAbsolute in class File
      • renameTo

        public boolean renameTo​(File dest)
        Deprecated.
        Overrides:
        renameTo in class File
      • deleteOnExit

        public void deleteOnExit()
        Deprecated.
        Overrides:
        deleteOnExit in class File
      • length

        public long length()
        Deprecated.
        Overrides:
        length in class File
      • getChunkSize

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

        public boolean delete()
        Deprecated.
        Overrides:
        delete in class File
      • mkdir

        public boolean mkdir()
        Deprecated.
        Overrides:
        mkdir in class File
      • mkdirs

        public boolean mkdirs()
        Deprecated.
        Overrides:
        mkdirs in class File
      • exists

        public boolean exists()
        Deprecated.
        Overrides:
        exists in class File
      • lastModified

        public long lastModified()
        Deprecated.
        Overrides:
        lastModified in class File
      • setLastModified

        public boolean setLastModified​(long time)
        Deprecated.
        Overrides:
        setLastModified in class File
      • list

        public String[] list()
        Deprecated.
        Overrides:
        list in class File
      • listFiles

        public File[] listFiles()
        Deprecated.
        Overrides:
        listFiles in class File
      • isDirectory

        public boolean isDirectory()
        Deprecated.
        Overrides:
        isDirectory in class File
      • isFile

        public boolean isFile()
        Deprecated.
        Overrides:
        isFile in class File
      • initChunkSizeFromMetadata

        protected void initChunkSizeFromMetadata()
        Deprecated.
      • _listFiles

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

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

        protected static boolean isChildOf​(String parent,
                                           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 String filename​(String fullPath)
        Deprecated.
      • checkParentDirs

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

        public boolean equals​(Object obj)
        Deprecated.
        Overrides:
        equals in class File
      • canRead

        public boolean canRead()
        Deprecated.
        Overrides:
        canRead in class File
      • canWrite

        public boolean canWrite()
        Deprecated.
        Overrides:
        canWrite in class File
      • isHidden

        public boolean isHidden()
        Deprecated.
        Overrides:
        isHidden in class File
      • canExecute

        public boolean canExecute()
        Deprecated.
        Overrides:
        canExecute in class File
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class File
      • toURI

        public URI toURI()
        Deprecated.
        Overrides:
        toURI in class File
      • setReadOnly

        public boolean setReadOnly()
        Deprecated.
        Overrides:
        setReadOnly in class File
      • setWritable

        public boolean setWritable​(boolean writable,
                                   boolean ownerOnly)
        Deprecated.
        Overrides:
        setWritable in class File
      • setWritable

        public boolean setWritable​(boolean writable)
        Deprecated.
        Overrides:
        setWritable in class File
      • setReadable

        public boolean setReadable​(boolean readable,
                                   boolean ownerOnly)
        Deprecated.
        Overrides:
        setReadable in class File
      • setReadable

        public boolean setReadable​(boolean readable)
        Deprecated.
        Overrides:
        setReadable in class File
      • setExecutable

        public boolean setExecutable​(boolean executable,
                                     boolean ownerOnly)
        Deprecated.
        Overrides:
        setExecutable in class File
      • setExecutable

        public boolean setExecutable​(boolean executable)
        Deprecated.
        Overrides:
        setExecutable in class File
      • getTotalSpace

        public long getTotalSpace()
        Deprecated.
        Overrides:
        getTotalSpace in class File
      • getFreeSpace

        public long getFreeSpace()
        Deprecated.
        Overrides:
        getFreeSpace in class File
      • getUsableSpace

        public long getUsableSpace()
        Deprecated.
        Overrides:
        getUsableSpace in class File