Package org.infinispan.io
Class GridFile
- java.lang.Object
-
- java.io.File
-
- org.infinispan.io.GridFile
-
- All Implemented Interfaces:
Serializable,Comparable<File>
@Deprecated public class GridFile extends File
Deprecated.since 10.0Subclass 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 classGridFile.MetadataDeprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected String[]_list(Object filter)Deprecated.protected File[]_listFiles(Object filter)Deprecated.booleancanExecute()Deprecated.booleancanRead()Deprecated.booleancanWrite()Deprecated.protected booleancheckParentDirs(String path, boolean createIfAbsent)Deprecated.Checks whether the parent directories are present (and are directories).intcompareTo(File file)Deprecated.booleancreateNewFile()Deprecated.booleandelete()Deprecated.voiddeleteOnExit()Deprecated.booleanequals(Object obj)Deprecated.booleanexists()Deprecated.protected static Stringfilename(String fullPath)Deprecated.FilegetAbsoluteFile()Deprecated.StringgetAbsolutePath()Deprecated.FilegetCanonicalFile()Deprecated.StringgetCanonicalPath()Deprecated.intgetChunkSize()Deprecated.Guaranteed to be a power of twolonggetFreeSpace()Deprecated.StringgetName()Deprecated.StringgetParent()Deprecated.FilegetParentFile()Deprecated.StringgetPath()Deprecated.Returns path of this file.longgetTotalSpace()Deprecated.longgetUsableSpace()Deprecated.inthashCode()Deprecated.protected voidinitChunkSizeFromMetadata()Deprecated.booleanisAbsolute()Deprecated.protected static booleanisChildOf(String parent, String child)Deprecated.Verifies whether child is a child (dir or file) of parentbooleanisDirectory()Deprecated.booleanisFile()Deprecated.booleanisHidden()Deprecated.longlastModified()Deprecated.longlength()Deprecated.String[]list()Deprecated.String[]list(FilenameFilter filter)Deprecated.File[]listFiles()Deprecated.File[]listFiles(FileFilter filter)Deprecated.File[]listFiles(FilenameFilter filter)Deprecated.booleanmkdir()Deprecated.booleanmkdirs()Deprecated.booleanrenameTo(File dest)Deprecated.booleansetExecutable(boolean executable)Deprecated.booleansetExecutable(boolean executable, boolean ownerOnly)Deprecated.booleansetLastModified(long time)Deprecated.booleansetReadable(boolean readable)Deprecated.booleansetReadable(boolean readable, boolean ownerOnly)Deprecated.booleansetReadOnly()Deprecated.booleansetWritable(boolean writable)Deprecated.booleansetWritable(boolean writable, boolean ownerOnly)Deprecated.StringtoString()Deprecated.URItoURI()Deprecated.URLtoURL()Deprecated.
-
-
-
Method Detail
-
getName
public String getName()
Deprecated.
-
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.- Returns:
- String containing path of file.
-
getAbsolutePath
public String getAbsolutePath()
Deprecated.
-
getAbsoluteFile
public File getAbsoluteFile()
Deprecated.
-
getCanonicalPath
public String getCanonicalPath() throws IOException
Deprecated.- Throws:
IOException
-
getCanonicalFile
public File getCanonicalFile() throws IOException
Deprecated.- Throws:
IOException
-
isAbsolute
public boolean isAbsolute()
Deprecated.
-
renameTo
public boolean renameTo(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 IOExceptionDeprecated.- Throws:
IOException
-
delete
public boolean delete()
Deprecated.
-
mkdir
public boolean mkdir()
Deprecated.
-
mkdirs
public boolean mkdirs()
Deprecated.
-
exists
public boolean exists()
Deprecated.
-
getParent
public String getParent()
Deprecated.
-
getParentFile
public File getParentFile()
Deprecated.
-
lastModified
public long lastModified()
Deprecated.
-
setLastModified
public boolean setLastModified(long time)
Deprecated.
-
list
public String[] list()
Deprecated.
-
list
public String[] list(FilenameFilter filter)
Deprecated.
-
listFiles
public File[] listFiles()
Deprecated.
-
listFiles
public File[] listFiles(FilenameFilter filter)
Deprecated.
-
listFiles
public File[] listFiles(FileFilter filter)
Deprecated.
-
isDirectory
public boolean isDirectory()
Deprecated.
-
isFile
public boolean isFile()
Deprecated.
-
initChunkSizeFromMetadata
protected void initChunkSizeFromMetadata()
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
-
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.
-
canRead
public boolean canRead()
Deprecated.
-
canWrite
public boolean canWrite()
Deprecated.
-
isHidden
public boolean isHidden()
Deprecated.
-
canExecute
public boolean canExecute()
Deprecated.
-
compareTo
public int compareTo(File file)
Deprecated.
-
hashCode
public int hashCode()
Deprecated.
-
toString
public String toString()
Deprecated.
-
toURL
public URL toURL() throws MalformedURLException
Deprecated.- Throws:
MalformedURLException
-
toURI
public 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.
-
-