Package org.infinispan.io
Class GridFile
java.lang.Object
java.io.File
org.infinispan.io.GridFile
- All Implemented Interfaces:
Serializable,Comparable<File>
Deprecated.
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected String[]Deprecated.protected File[]_listFiles(Object filter) Deprecated.booleanDeprecated.booleancanRead()Deprecated.booleancanWrite()Deprecated.protected booleancheckParentDirs(String path, boolean createIfAbsent) Deprecated.Checks whether the parent directories are present (and are directories).intDeprecated.booleanDeprecated.booleandelete()Deprecated.voidDeprecated.booleanDeprecated.booleanexists()Deprecated.protected static StringDeprecated.Deprecated.Deprecated.Deprecated.Deprecated.intDeprecated.Guaranteed to be a power of twolongDeprecated.getName()Deprecated.Deprecated.Deprecated.getPath()Deprecated.Returns path of this file.longDeprecated.longDeprecated.inthashCode()Deprecated.protected voidDeprecated.booleanDeprecated.protected static booleanDeprecated.Verifies whether child is a child (dir or file) of parentbooleanDeprecated.booleanisFile()Deprecated.booleanisHidden()Deprecated.longDeprecated.longlength()Deprecated.String[]list()Deprecated.String[]list(FilenameFilter filter) Deprecated.File[]Deprecated.File[]listFiles(FileFilter filter) Deprecated.File[]listFiles(FilenameFilter filter) Deprecated.booleanmkdir()Deprecated.booleanmkdirs()Deprecated.booleanDeprecated.booleansetExecutable(boolean executable) Deprecated.booleansetExecutable(boolean executable, boolean ownerOnly) Deprecated.booleansetLastModified(long time) Deprecated.booleansetReadable(boolean readable) Deprecated.booleansetReadable(boolean readable, boolean ownerOnly) Deprecated.booleanDeprecated.booleansetWritable(boolean writable) Deprecated.booleansetWritable(boolean writable, boolean ownerOnly) Deprecated.toString()Deprecated.toURI()Deprecated.toURL()Deprecated.
-
Method Details
-
getName
Deprecated. -
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
Deprecated. -
getAbsoluteFile
Deprecated. -
getCanonicalPath
Deprecated.- Throws:
IOException
-
getCanonicalFile
Deprecated.- Throws:
IOException
-
isAbsolute
public boolean isAbsolute()Deprecated. -
renameTo
Deprecated. -
deleteOnExit
public void deleteOnExit()Deprecated. -
length
public long length()Deprecated. -
getChunkSize
public int getChunkSize()Deprecated.Guaranteed to be a power of two -
createNewFile
Deprecated.- Throws:
IOException
-
delete
public boolean delete()Deprecated. -
mkdir
public boolean mkdir()Deprecated. -
mkdirs
public boolean mkdirs()Deprecated. -
exists
public boolean exists()Deprecated. -
getParent
Deprecated. -
getParentFile
Deprecated. -
lastModified
public long lastModified()Deprecated. -
setLastModified
public boolean setLastModified(long time) Deprecated. -
list
Deprecated. -
list
Deprecated. -
listFiles
Deprecated. -
listFiles
Deprecated. -
listFiles
Deprecated. -
isDirectory
public boolean isDirectory()Deprecated. -
isFile
public boolean isFile()Deprecated. -
initChunkSizeFromMetadata
protected void initChunkSizeFromMetadata()Deprecated. -
_listFiles
Deprecated. -
_list
Deprecated. -
isChildOf
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
Deprecated. -
checkParentDirs
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
Deprecated. -
canRead
public boolean canRead()Deprecated. -
canWrite
public boolean canWrite()Deprecated. -
isHidden
public boolean isHidden()Deprecated. -
canExecute
public boolean canExecute()Deprecated. -
compareTo
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated. -
toURL
Deprecated.- Throws:
MalformedURLException
-
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.
-