Package org.infinispan.io
Class GridFile
java.lang.Object
java.io.File
org.infinispan.io.GridFile
- All Implemented Interfaces:
Serializable
,Comparable<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
Modifier and TypeClassDescriptionstatic 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 TypeMethodDescriptionprotected String[]
Deprecated, for removal: This API element is subject to removal in a future version.protected File[]
_listFiles
(Object filter) 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
canRead()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
canWrite()
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
delete()
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
exists()
Deprecated, for removal: This API element is subject to removal in a future version.protected static String
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 twolong
Deprecated, for removal: This API element is subject to removal in a future version.getName()
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.getPath()
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
hashCode()
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
Deprecated, for removal: This API element is subject to removal in a future version.Verifies whether child is a child (dir or file) of parentboolean
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isFile()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isHidden()
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
length()
Deprecated, for removal: This API element is subject to removal in a future version.String[]
list()
Deprecated, for removal: This API element is subject to removal in a future version.String[]
list
(FilenameFilter filter) Deprecated, for removal: This API element is subject to removal in a future version.File[]
Deprecated, for removal: This API element is subject to removal in a future version.File[]
listFiles
(FileFilter filter) Deprecated, for removal: This API element is subject to removal in a future version.File[]
listFiles
(FilenameFilter filter) Deprecated, for removal: This API element is subject to removal in a future version.boolean
mkdir()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
mkdirs()
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
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.toString()
Deprecated, for removal: This API element is subject to removal in a future version.toURI()
Deprecated, for removal: This API element is subject to removal in a future version.toURL()
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
-
Method Details
-
getName
Deprecated, for removal: This API element is subject to removal in a future version. -
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. -
getAbsolutePath
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getAbsolutePath
in classFile
-
getAbsoluteFile
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getAbsoluteFile
in classFile
-
getCanonicalPath
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getCanonicalPath
in classFile
- Throws:
IOException
-
getCanonicalFile
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getCanonicalFile
in classFile
- Throws:
IOException
-
isAbsolute
public boolean isAbsolute()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
isAbsolute
in classFile
-
renameTo
Deprecated, for removal: This API element is subject to removal in a future version. -
deleteOnExit
public void deleteOnExit()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
deleteOnExit
in classFile
-
length
public long length()Deprecated, for removal: This API element is subject to removal in a future version. -
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
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
createNewFile
in classFile
- Throws:
IOException
-
delete
public boolean delete()Deprecated, for removal: This API element is subject to removal in a future version. -
mkdir
public boolean mkdir()Deprecated, for removal: This API element is subject to removal in a future version. -
mkdirs
public boolean mkdirs()Deprecated, for removal: This API element is subject to removal in a future version. -
exists
public boolean exists()Deprecated, for removal: This API element is subject to removal in a future version. -
getParent
Deprecated, for removal: This API element is subject to removal in a future version. -
getParentFile
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getParentFile
in classFile
-
lastModified
public long lastModified()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
lastModified
in classFile
-
setLastModified
public boolean setLastModified(long time) Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setLastModified
in classFile
-
list
Deprecated, for removal: This API element is subject to removal in a future version. -
list
Deprecated, for removal: This API element is subject to removal in a future version. -
listFiles
Deprecated, for removal: This API element is subject to removal in a future version. -
listFiles
Deprecated, for removal: This API element is subject to removal in a future version. -
listFiles
Deprecated, for removal: This API element is subject to removal in a future version. -
isDirectory
public boolean isDirectory()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
isDirectory
in classFile
-
isFile
public boolean isFile()Deprecated, for removal: This API element is subject to removal in a future version. -
initChunkSizeFromMetadata
protected void initChunkSizeFromMetadata()Deprecated, for removal: This API element is subject to removal in a future version. -
_listFiles
Deprecated, for removal: This API element is subject to removal in a future version. -
_list
Deprecated, for removal: This API element is subject to removal in a future version. -
isChildOf
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
Deprecated, for removal: This API element is subject to removal in a future version. -
checkParentDirs
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
Deprecated, for removal: This API element is subject to removal in a future version. -
canRead
public boolean canRead()Deprecated, for removal: This API element is subject to removal in a future version. -
canWrite
public boolean canWrite()Deprecated, for removal: This API element is subject to removal in a future version. -
isHidden
public boolean isHidden()Deprecated, for removal: This API element is subject to removal in a future version. -
canExecute
public boolean canExecute()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
canExecute
in classFile
-
compareTo
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
compareTo
in interfaceComparable<File>
- Overrides:
compareTo
in classFile
-
hashCode
public int hashCode()Deprecated, for removal: This API element is subject to removal in a future version. -
toString
Deprecated, for removal: This API element is subject to removal in a future version. -
toURL
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
toURL
in classFile
- Throws:
MalformedURLException
-
toURI
Deprecated, for removal: This API element is subject to removal in a future version. -
setReadOnly
public boolean setReadOnly()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setReadOnly
in classFile
-
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 classFile
-
setWritable
public boolean setWritable(boolean writable) Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setWritable
in classFile
-
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 classFile
-
setReadable
public boolean setReadable(boolean readable) Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setReadable
in classFile
-
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 classFile
-
setExecutable
public boolean setExecutable(boolean executable) Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setExecutable
in classFile
-
getTotalSpace
public long getTotalSpace()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getTotalSpace
in classFile
-
getFreeSpace
public long getFreeSpace()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getFreeSpace
in classFile
-
getUsableSpace
public long getUsableSpace()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getUsableSpace
in classFile
-