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.boolean
Deprecated.boolean
canRead()
Deprecated.boolean
canWrite()
Deprecated.protected boolean
checkParentDirs
(String path, boolean createIfAbsent) Deprecated.Checks whether the parent directories are present (and are directories).int
Deprecated.boolean
Deprecated.boolean
delete()
Deprecated.void
Deprecated.boolean
Deprecated.boolean
exists()
Deprecated.protected static String
Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.int
Deprecated.Guaranteed to be a power of twolong
Deprecated.getName()
Deprecated.Deprecated.Deprecated.getPath()
Deprecated.Returns path of this file.long
Deprecated.long
Deprecated.int
hashCode()
Deprecated.protected void
Deprecated.boolean
Deprecated.protected static boolean
Deprecated.Verifies whether child is a child (dir or file) of parentboolean
Deprecated.boolean
isFile()
Deprecated.boolean
isHidden()
Deprecated.long
Deprecated.long
length()
Deprecated.String[]
list()
Deprecated.String[]
list
(FilenameFilter filter) Deprecated.File[]
Deprecated.File[]
listFiles
(FileFilter filter) Deprecated.File[]
listFiles
(FilenameFilter filter) Deprecated.boolean
mkdir()
Deprecated.boolean
mkdirs()
Deprecated.boolean
Deprecated.boolean
setExecutable
(boolean executable) Deprecated.boolean
setExecutable
(boolean executable, boolean ownerOnly) Deprecated.boolean
setLastModified
(long time) Deprecated.boolean
setReadable
(boolean readable) Deprecated.boolean
setReadable
(boolean readable, boolean ownerOnly) Deprecated.boolean
Deprecated.boolean
setWritable
(boolean writable) Deprecated.boolean
setWritable
(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.
-