Package org.infinispan.io
Class GridFile
- java.lang.Object
-
- java.io.File
-
- org.infinispan.io.GridFile
-
- All Implemented Interfaces:
Serializable
,Comparable<File>
@Deprecated public class GridFile extends File
Deprecated.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 class
GridFile.Metadata
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected String[]
_list(Object filter)
Deprecated.protected File[]
_listFiles(Object filter)
Deprecated.boolean
canExecute()
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
compareTo(File file)
Deprecated.boolean
createNewFile()
Deprecated.boolean
delete()
Deprecated.void
deleteOnExit()
Deprecated.boolean
equals(Object obj)
Deprecated.boolean
exists()
Deprecated.protected static String
filename(String fullPath)
Deprecated.File
getAbsoluteFile()
Deprecated.String
getAbsolutePath()
Deprecated.File
getCanonicalFile()
Deprecated.String
getCanonicalPath()
Deprecated.int
getChunkSize()
Deprecated.Guaranteed to be a power of twolong
getFreeSpace()
Deprecated.String
getName()
Deprecated.String
getParent()
Deprecated.File
getParentFile()
Deprecated.String
getPath()
Deprecated.Returns path of this file.long
getTotalSpace()
Deprecated.long
getUsableSpace()
Deprecated.int
hashCode()
Deprecated.protected void
initChunkSizeFromMetadata()
Deprecated.boolean
isAbsolute()
Deprecated.protected static boolean
isChildOf(String parent, String child)
Deprecated.Verifies whether child is a child (dir or file) of parentboolean
isDirectory()
Deprecated.boolean
isFile()
Deprecated.boolean
isHidden()
Deprecated.long
lastModified()
Deprecated.long
length()
Deprecated.String[]
list()
Deprecated.String[]
list(FilenameFilter filter)
Deprecated.File[]
listFiles()
Deprecated.File[]
listFiles(FileFilter filter)
Deprecated.File[]
listFiles(FilenameFilter filter)
Deprecated.boolean
mkdir()
Deprecated.boolean
mkdirs()
Deprecated.boolean
renameTo(File dest)
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
setReadOnly()
Deprecated.boolean
setWritable(boolean writable)
Deprecated.boolean
setWritable(boolean writable, boolean ownerOnly)
Deprecated.String
toString()
Deprecated.URI
toURI()
Deprecated.URL
toURL()
Deprecated.
-
-
-
Method Detail
-
getName
public String getName()
Deprecated.
-
getPath
public 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 String getAbsolutePath()
Deprecated.
-
getAbsoluteFile
public File getAbsoluteFile()
Deprecated.
-
getCanonicalPath
public String getCanonicalPath() throws IOException
Deprecated.- Throws:
IOException
-
getCanonicalFile
public File getCanonicalFile() throws IOException
Deprecated.- Throws:
IOException
-
isAbsolute
public boolean isAbsolute()
Deprecated.
-
renameTo
public boolean renameTo(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 IOException
Deprecated.- Throws:
IOException
-
delete
public boolean delete()
Deprecated.
-
mkdir
public boolean mkdir()
Deprecated.
-
mkdirs
public boolean mkdirs()
Deprecated.
-
exists
public boolean exists()
Deprecated.
-
getParent
public String getParent()
Deprecated.
-
getParentFile
public File getParentFile()
Deprecated.
-
lastModified
public long lastModified()
Deprecated.
-
setLastModified
public boolean setLastModified(long time)
Deprecated.
-
list
public String[] list()
Deprecated.
-
list
public String[] list(FilenameFilter filter)
Deprecated.
-
listFiles
public File[] listFiles()
Deprecated.
-
listFiles
public File[] listFiles(FilenameFilter filter)
Deprecated.
-
listFiles
public File[] listFiles(FileFilter filter)
Deprecated.
-
isDirectory
public boolean isDirectory()
Deprecated.
-
isFile
public boolean isFile()
Deprecated.
-
initChunkSizeFromMetadata
protected void initChunkSizeFromMetadata()
Deprecated.
-
isChildOf
protected static boolean isChildOf(String parent, 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
-
checkParentDirs
protected boolean checkParentDirs(String path, boolean createIfAbsent) throws IOException
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
public boolean equals(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(File file)
Deprecated.
-
hashCode
public int hashCode()
Deprecated.
-
toString
public String toString()
Deprecated.
-
toURL
public URL toURL() throws MalformedURLException
Deprecated.- Throws:
MalformedURLException
-
toURI
public 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.
-
-