Package org.infinispan.io
Class GridFile
- java.lang.Object
-
- java.io.File
-
- org.infinispan.io.GridFile
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<java.io.File>
@Deprecated public class GridFile extends java.io.FileDeprecated.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 java.lang.String[]_list(java.lang.Object filter)Deprecated.protected java.io.File[]_listFiles(java.lang.Object filter)Deprecated.booleancanExecute()Deprecated.booleancanRead()Deprecated.booleancanWrite()Deprecated.protected booleancheckParentDirs(java.lang.String path, boolean createIfAbsent)Deprecated.Checks whether the parent directories are present (and are directories).intcompareTo(java.io.File file)Deprecated.booleancreateNewFile()Deprecated.booleandelete()Deprecated.voiddeleteOnExit()Deprecated.booleanequals(java.lang.Object obj)Deprecated.booleanexists()Deprecated.protected static java.lang.Stringfilename(java.lang.String fullPath)Deprecated.java.io.FilegetAbsoluteFile()Deprecated.java.lang.StringgetAbsolutePath()Deprecated.java.io.FilegetCanonicalFile()Deprecated.java.lang.StringgetCanonicalPath()Deprecated.intgetChunkSize()Deprecated.Guaranteed to be a power of twolonggetFreeSpace()Deprecated.java.lang.StringgetName()Deprecated.java.lang.StringgetParent()Deprecated.java.io.FilegetParentFile()Deprecated.java.lang.StringgetPath()Deprecated.Returns path of this file.longgetTotalSpace()Deprecated.longgetUsableSpace()Deprecated.inthashCode()Deprecated.protected voidinitChunkSizeFromMetadata()Deprecated.booleanisAbsolute()Deprecated.protected static booleanisChildOf(java.lang.String parent, java.lang.String child)Deprecated.Verifies whether child is a child (dir or file) of parentbooleanisDirectory()Deprecated.booleanisFile()Deprecated.booleanisHidden()Deprecated.longlastModified()Deprecated.longlength()Deprecated.java.lang.String[]list()Deprecated.java.lang.String[]list(java.io.FilenameFilter filter)Deprecated.java.io.File[]listFiles()Deprecated.java.io.File[]listFiles(java.io.FileFilter filter)Deprecated.java.io.File[]listFiles(java.io.FilenameFilter filter)Deprecated.booleanmkdir()Deprecated.booleanmkdirs()Deprecated.booleanrenameTo(java.io.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.java.lang.StringtoString()Deprecated.java.net.URItoURI()Deprecated.java.net.URLtoURL()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.IOExceptionDeprecated.- Throws:
java.io.IOException
-
getCanonicalFile
public java.io.File getCanonicalFile() throws java.io.IOExceptionDeprecated.- 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.IOExceptionDeprecated.- 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.IOExceptionDeprecated.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.MalformedURLExceptionDeprecated.- 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.
-
-