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 -
Field Summary
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar -
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.Methods inherited from class java.io.File
createTempFile, createTempFile, listRoots, toPath
-
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. -
getAbsolutePath
Deprecated.- Overrides:
getAbsolutePathin classFile
-
getAbsoluteFile
Deprecated.- Overrides:
getAbsoluteFilein classFile
-
getCanonicalPath
Deprecated.- Overrides:
getCanonicalPathin classFile- Throws:
IOException
-
getCanonicalFile
Deprecated.- Overrides:
getCanonicalFilein classFile- Throws:
IOException
-
isAbsolute
public boolean isAbsolute()Deprecated.- Overrides:
isAbsolutein classFile
-
renameTo
Deprecated. -
deleteOnExit
public void deleteOnExit()Deprecated.- Overrides:
deleteOnExitin classFile
-
length
public long length()Deprecated. -
getChunkSize
public int getChunkSize()Deprecated.Guaranteed to be a power of two -
createNewFile
Deprecated.- Overrides:
createNewFilein classFile- 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.- Overrides:
getParentFilein classFile
-
lastModified
public long lastModified()Deprecated.- Overrides:
lastModifiedin classFile
-
setLastModified
public boolean setLastModified(long time) Deprecated.- Overrides:
setLastModifiedin classFile
-
list
Deprecated. -
list
Deprecated. -
listFiles
Deprecated. -
listFiles
Deprecated. -
listFiles
Deprecated. -
isDirectory
public boolean isDirectory()Deprecated.- Overrides:
isDirectoryin classFile
-
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.- Overrides:
canExecutein classFile
-
compareTo
Deprecated.- Specified by:
compareToin interfaceComparable<File>- Overrides:
compareToin classFile
-
hashCode
public int hashCode()Deprecated. -
toString
Deprecated. -
toURL
Deprecated.- Overrides:
toURLin classFile- Throws:
MalformedURLException
-
toURI
Deprecated. -
setReadOnly
public boolean setReadOnly()Deprecated.- Overrides:
setReadOnlyin classFile
-
setWritable
public boolean setWritable(boolean writable, boolean ownerOnly) Deprecated.- Overrides:
setWritablein classFile
-
setWritable
public boolean setWritable(boolean writable) Deprecated.- Overrides:
setWritablein classFile
-
setReadable
public boolean setReadable(boolean readable, boolean ownerOnly) Deprecated.- Overrides:
setReadablein classFile
-
setReadable
public boolean setReadable(boolean readable) Deprecated.- Overrides:
setReadablein classFile
-
setExecutable
public boolean setExecutable(boolean executable, boolean ownerOnly) Deprecated.- Overrides:
setExecutablein classFile
-
setExecutable
public boolean setExecutable(boolean executable) Deprecated.- Overrides:
setExecutablein classFile
-
getTotalSpace
public long getTotalSpace()Deprecated.- Overrides:
getTotalSpacein classFile
-
getFreeSpace
public long getFreeSpace()Deprecated.- Overrides:
getFreeSpacein classFile
-
getUsableSpace
public long getUsableSpace()Deprecated.- Overrides:
getUsableSpacein classFile
-