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 classGridFile.MetadataDeprecated.
-
Field Summary
-
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
-
-
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.booleancanExecute()Deprecated.booleancanRead()Deprecated.booleancanWrite()Deprecated.protected booleancheckParentDirs(String path, boolean createIfAbsent)Deprecated.Checks whether the parent directories are present (and are directories).intcompareTo(File file)Deprecated.booleancreateNewFile()Deprecated.booleandelete()Deprecated.voiddeleteOnExit()Deprecated.booleanequals(Object obj)Deprecated.booleanexists()Deprecated.protected static Stringfilename(String fullPath)Deprecated.FilegetAbsoluteFile()Deprecated.StringgetAbsolutePath()Deprecated.FilegetCanonicalFile()Deprecated.StringgetCanonicalPath()Deprecated.intgetChunkSize()Deprecated.Guaranteed to be a power of twolonggetFreeSpace()Deprecated.StringgetName()Deprecated.StringgetParent()Deprecated.FilegetParentFile()Deprecated.StringgetPath()Deprecated.Returns path of this file.longgetTotalSpace()Deprecated.longgetUsableSpace()Deprecated.inthashCode()Deprecated.protected voidinitChunkSizeFromMetadata()Deprecated.booleanisAbsolute()Deprecated.protected static booleanisChildOf(String parent, String child)Deprecated.Verifies whether child is a child (dir or file) of parentbooleanisDirectory()Deprecated.booleanisFile()Deprecated.booleanisHidden()Deprecated.longlastModified()Deprecated.longlength()Deprecated.String[]list()Deprecated.String[]list(FilenameFilter filter)Deprecated.File[]listFiles()Deprecated.File[]listFiles(FileFilter filter)Deprecated.File[]listFiles(FilenameFilter filter)Deprecated.booleanmkdir()Deprecated.booleanmkdirs()Deprecated.booleanrenameTo(File dest)Deprecated.booleansetExecutable(boolean executable)Deprecated.booleansetExecutable(boolean executable, boolean ownerOnly)Deprecated.booleansetLastModified(long time)Deprecated.booleansetReadable(boolean readable)Deprecated.booleansetReadable(boolean readable, boolean ownerOnly)Deprecated.booleansetReadOnly()Deprecated.booleansetWritable(boolean writable)Deprecated.booleansetWritable(boolean writable, boolean ownerOnly)Deprecated.StringtoString()Deprecated.URItoURI()Deprecated.URLtoURL()Deprecated.-
Methods inherited from class java.io.File
createTempFile, createTempFile, listRoots, toPath
-
-
-
-
Method Detail
-
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.
-
getAbsolutePath
public String getAbsolutePath()
Deprecated.- Overrides:
getAbsolutePathin classFile
-
getAbsoluteFile
public File getAbsoluteFile()
Deprecated.- Overrides:
getAbsoluteFilein classFile
-
getCanonicalPath
public String getCanonicalPath() throws IOException
Deprecated.- Overrides:
getCanonicalPathin classFile- Throws:
IOException
-
getCanonicalFile
public File getCanonicalFile() throws IOException
Deprecated.- Overrides:
getCanonicalFilein classFile- Throws:
IOException
-
isAbsolute
public boolean isAbsolute()
Deprecated.- Overrides:
isAbsolutein classFile
-
deleteOnExit
public void deleteOnExit()
Deprecated.- Overrides:
deleteOnExitin classFile
-
getChunkSize
public int getChunkSize()
Deprecated.Guaranteed to be a power of two
-
createNewFile
public boolean createNewFile() throws IOExceptionDeprecated.- Overrides:
createNewFilein classFile- Throws:
IOException
-
getParentFile
public File getParentFile()
Deprecated.- Overrides:
getParentFilein classFile
-
lastModified
public long lastModified()
Deprecated.- Overrides:
lastModifiedin classFile
-
setLastModified
public boolean setLastModified(long time)
Deprecated.- Overrides:
setLastModifiedin classFile
-
list
public String[] list(FilenameFilter filter)
Deprecated.
-
listFiles
public File[] listFiles(FilenameFilter filter)
Deprecated.
-
listFiles
public File[] listFiles(FileFilter filter)
Deprecated.
-
isDirectory
public boolean isDirectory()
Deprecated.- Overrides:
isDirectoryin classFile
-
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
-
canExecute
public boolean canExecute()
Deprecated.- Overrides:
canExecutein classFile
-
compareTo
public int compareTo(File file)
Deprecated.- Specified by:
compareToin interfaceComparable<File>- Overrides:
compareToin classFile
-
toURL
public URL toURL() throws MalformedURLException
Deprecated.- Overrides:
toURLin classFile- Throws:
MalformedURLException
-
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
-
-