|
Infinispan Distribution 5.2.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.File
org.infinispan.io.GridFile
public class GridFile
Subclass of File to iterate through directories and files in a grid
Nested Class Summary | |
---|---|
static class |
GridFile.Metadata
|
Field Summary |
---|
Fields inherited from class java.io.File |
---|
pathSeparator, pathSeparatorChar, separator, separatorChar |
Method Summary | |
---|---|
protected String[] |
_list(Object filter)
|
protected File[] |
_listFiles(Object filter)
|
boolean |
canExecute()
|
boolean |
canRead()
|
boolean |
canWrite()
|
protected boolean |
checkParentDirs(String path,
boolean createIfAbsent)
Checks whether the parent directories are present (and are directories). |
int |
compareTo(File file)
|
boolean |
createNewFile()
|
boolean |
delete()
|
boolean |
delete(boolean synchronous)
Deprecated. create GridFilesystem instance with additional FORCE_SYNCHRONOUS flag, if operations should be executed synchronously |
void |
deleteOnExit()
|
boolean |
equals(Object obj)
|
boolean |
exists()
|
protected static String |
filename(String fullPath)
|
File |
getAbsoluteFile()
|
String |
getAbsolutePath()
|
File |
getCanonicalFile()
|
String |
getCanonicalPath()
|
int |
getChunkSize()
|
long |
getFreeSpace()
|
String |
getName()
|
String |
getParent()
|
File |
getParentFile()
|
String |
getPath()
Returns path of this file. |
long |
getTotalSpace()
|
long |
getUsableSpace()
|
int |
hashCode()
|
protected void |
initChunkSizeFromMetadata()
|
boolean |
isAbsolute()
|
protected static boolean |
isChildOf(String parent,
String child)
Verifies whether child is a child (dir or file) of parent |
boolean |
isDirectory()
|
boolean |
isFile()
|
boolean |
isHidden()
|
long |
lastModified()
|
long |
length()
|
String[] |
list()
|
String[] |
list(FilenameFilter filter)
|
File[] |
listFiles()
|
File[] |
listFiles(FileFilter filter)
|
File[] |
listFiles(FilenameFilter filter)
|
boolean |
mkdir()
|
boolean |
mkdirs()
|
boolean |
renameTo(File dest)
|
boolean |
setExecutable(boolean executable)
|
boolean |
setExecutable(boolean executable,
boolean ownerOnly)
|
boolean |
setLastModified(long time)
|
boolean |
setReadable(boolean readable)
|
boolean |
setReadable(boolean readable,
boolean ownerOnly)
|
boolean |
setReadOnly()
|
boolean |
setWritable(boolean writable)
|
boolean |
setWritable(boolean writable,
boolean ownerOnly)
|
String |
toString()
|
URI |
toURI()
|
URL |
toURL()
|
Methods inherited from class java.io.File |
---|
createTempFile, createTempFile, listRoots |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public String getName()
getName
in class File
public String getPath()
getPath
in class File
public String getAbsolutePath()
getAbsolutePath
in class File
public File getAbsoluteFile()
getAbsoluteFile
in class File
public String getCanonicalPath() throws IOException
getCanonicalPath
in class File
IOException
public File getCanonicalFile() throws IOException
getCanonicalFile
in class File
IOException
public boolean isAbsolute()
isAbsolute
in class File
public boolean renameTo(File dest)
renameTo
in class File
public void deleteOnExit()
deleteOnExit
in class File
public long length()
length
in class File
public int getChunkSize()
public boolean createNewFile() throws IOException
createNewFile
in class File
IOException
public boolean delete()
delete
in class File
@Deprecated public boolean delete(boolean synchronous)
public boolean mkdir()
mkdir
in class File
public boolean mkdirs()
mkdirs
in class File
public boolean exists()
exists
in class File
public String getParent()
getParent
in class File
public File getParentFile()
getParentFile
in class File
public long lastModified()
lastModified
in class File
public boolean setLastModified(long time)
setLastModified
in class File
public String[] list()
list
in class File
public String[] list(FilenameFilter filter)
list
in class File
public File[] listFiles()
listFiles
in class File
public File[] listFiles(FilenameFilter filter)
listFiles
in class File
public File[] listFiles(FileFilter filter)
listFiles
in class File
public boolean isDirectory()
isDirectory
in class File
public boolean isFile()
isFile
in class File
protected void initChunkSizeFromMetadata()
protected File[] _listFiles(Object filter)
protected String[] _list(Object filter)
protected static boolean isChildOf(String parent, String child)
parent
- child
-
protected static String filename(String fullPath)
protected boolean checkParentDirs(String path, boolean createIfAbsent) throws IOException
path
- createIfAbsent
-
IOException
public boolean equals(Object obj)
equals
in class File
public boolean canRead()
canRead
in class File
public boolean canWrite()
canWrite
in class File
public boolean isHidden()
isHidden
in class File
public boolean canExecute()
canExecute
in class File
public int compareTo(File file)
compareTo
in interface Comparable<File>
compareTo
in class File
public int hashCode()
hashCode
in class File
public String toString()
toString
in class File
public URL toURL() throws MalformedURLException
toURL
in class File
MalformedURLException
public URI toURI()
toURI
in class File
public boolean setReadOnly()
setReadOnly
in class File
public boolean setWritable(boolean writable, boolean ownerOnly)
setWritable
in class File
public boolean setWritable(boolean writable)
setWritable
in class File
public boolean setReadable(boolean readable, boolean ownerOnly)
setReadable
in class File
public boolean setReadable(boolean readable)
setReadable
in class File
public boolean setExecutable(boolean executable, boolean ownerOnly)
setExecutable
in class File
public boolean setExecutable(boolean executable)
setExecutable
in class File
public long getTotalSpace()
getTotalSpace
in class File
public long getFreeSpace()
getFreeSpace
in class File
public long getUsableSpace()
getUsableSpace
in class File
|
Infinispan Distribution 5.2.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |