Class GridFile

java.lang.Object
java.io.File
org.infinispan.io.GridFile
All Implemented Interfaces:
Serializable, Comparable<File>

@Deprecated(forRemoval=true) public class GridFile extends File
Deprecated, for removal: This API element is subject to removal in a future version.
since 10.0
Subclass of File to iterate through directories and files in a grid
Author:
Bela Ban, Marko Luksa
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Field Summary

    Fields inherited from class java.io.File

    pathSeparator, pathSeparatorChar, separator, separatorChar
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String[]
    _list(Object filter)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected File[]
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected boolean
    checkParentDirs(String path, boolean createIfAbsent)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Checks whether the parent directories are present (and are directories).
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected static String
    filename(String fullPath)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Guaranteed to be a power of two
    long
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns path of this file.
    long
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected static boolean
    isChildOf(String parent, String child)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Verifies whether child is a child (dir or file) of parent
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    renameTo(File dest)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    setExecutable(boolean executable)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    setExecutable(boolean executable, boolean ownerOnly)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    setLastModified(long time)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    setReadable(boolean readable)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    setReadable(boolean readable, boolean ownerOnly)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    setWritable(boolean writable)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    setWritable(boolean writable, boolean ownerOnly)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.io.File

    createTempFile, createTempFile, listRoots, toPath

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • getName

      public String getName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      getName in class File
    • getPath

      public String getPath()
      Deprecated, for removal: This API element is subject to removal in a future version.
      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.
    • getAbsolutePath

      public String getAbsolutePath()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      getAbsolutePath in class File
    • getAbsoluteFile

      public File getAbsoluteFile()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      getAbsoluteFile in class File
    • getCanonicalPath

      public String getCanonicalPath() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      getCanonicalPath in class File
      Throws:
      IOException
    • getCanonicalFile

      public File getCanonicalFile() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      getCanonicalFile in class File
      Throws:
      IOException
    • isAbsolute

      public boolean isAbsolute()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      isAbsolute in class File
    • renameTo

      public boolean renameTo(File dest)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      renameTo in class File
    • deleteOnExit

      public void deleteOnExit()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      deleteOnExit in class File
    • length

      public long length()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      length in class File
    • getChunkSize

      public int getChunkSize()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Guaranteed to be a power of two
    • createNewFile

      public boolean createNewFile() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      createNewFile in class File
      Throws:
      IOException
    • delete

      public boolean delete()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      delete in class File
    • mkdir

      public boolean mkdir()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      mkdir in class File
    • mkdirs

      public boolean mkdirs()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      mkdirs in class File
    • exists

      public boolean exists()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      exists in class File
    • getParent

      public String getParent()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      getParent in class File
    • getParentFile

      public File getParentFile()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      getParentFile in class File
    • lastModified

      public long lastModified()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      lastModified in class File
    • setLastModified

      public boolean setLastModified(long time)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      setLastModified in class File
    • list

      public String[] list()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      list in class File
    • list

      public String[] list(FilenameFilter filter)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      list in class File
    • listFiles

      public File[] listFiles()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      listFiles in class File
    • listFiles

      public File[] listFiles(FilenameFilter filter)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      listFiles in class File
    • listFiles

      public File[] listFiles(FileFilter filter)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      listFiles in class File
    • isDirectory

      public boolean isDirectory()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      isDirectory in class File
    • isFile

      public boolean isFile()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      isFile in class File
    • initChunkSizeFromMetadata

      protected void initChunkSizeFromMetadata()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • _listFiles

      protected File[] _listFiles(Object filter)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • _list

      protected String[] _list(Object filter)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isChildOf

      protected static boolean isChildOf(String parent, String child)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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, for removal: This API element is subject to removal in a future version.
    • checkParentDirs

      protected boolean checkParentDirs(String path, boolean createIfAbsent) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      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, for removal: This API element is subject to removal in a future version.
      Overrides:
      equals in class File
    • canRead

      public boolean canRead()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      canRead in class File
    • canWrite

      public boolean canWrite()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      canWrite in class File
    • isHidden

      public boolean isHidden()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      isHidden in class File
    • canExecute

      public boolean canExecute()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      canExecute in class File
    • compareTo

      public int compareTo(File file)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      compareTo in interface Comparable<File>
      Overrides:
      compareTo in class File
    • hashCode

      public int hashCode()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      hashCode in class File
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class File
    • toURL

      public URL toURL() throws MalformedURLException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toURL in class File
      Throws:
      MalformedURLException
    • toURI

      public URI toURI()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toURI in class File
    • setReadOnly

      public boolean setReadOnly()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      setReadOnly in class File
    • setWritable

      public boolean setWritable(boolean writable, boolean ownerOnly)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      setWritable in class File
    • setWritable

      public boolean setWritable(boolean writable)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      setWritable in class File
    • setReadable

      public boolean setReadable(boolean readable, boolean ownerOnly)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      setReadable in class File
    • setReadable

      public boolean setReadable(boolean readable)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      setReadable in class File
    • setExecutable

      public boolean setExecutable(boolean executable, boolean ownerOnly)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      setExecutable in class File
    • setExecutable

      public boolean setExecutable(boolean executable)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      setExecutable in class File
    • getTotalSpace

      public long getTotalSpace()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      getTotalSpace in class File
    • getFreeSpace

      public long getFreeSpace()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      getFreeSpace in class File
    • getUsableSpace

      public long getUsableSpace()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      getUsableSpace in class File