public class GridFile extends File
| Modifier and Type | Class and Description |
|---|---|
static class |
GridFile.Metadata |
pathSeparator, pathSeparatorChar, separator, separatorChar| Modifier and Type | Method and Description |
|---|---|
protected String[] |
_list(Object filter) |
protected File[] |
_listFiles(Object filter) |
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) |
boolean |
equals(Object obj) |
boolean |
exists() |
protected static String |
filename(String fullPath) |
File |
getAbsoluteFile() |
String |
getAbsolutePath() |
int |
getChunkSize() |
String |
getName() |
String |
getParent() |
File |
getParentFile() |
String |
getPath()
Returns path of this file.
|
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() |
long |
lastModified() |
long |
length() |
String[] |
list() |
String[] |
list(FilenameFilter filter) |
File[] |
listFiles() |
File[] |
listFiles(FileFilter filter) |
File[] |
listFiles(FilenameFilter filter) |
boolean |
mkdir() |
boolean |
mkdirs() |
canExecute, canRead, canWrite, createTempFile, createTempFile, deleteOnExit, getCanonicalFile, getCanonicalPath, getFreeSpace, getTotalSpace, getUsableSpace, isHidden, listRoots, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURLpublic String getPath()
public String getAbsolutePath()
getAbsolutePath in class Filepublic File getAbsoluteFile()
getAbsoluteFile in class Filepublic boolean isAbsolute()
isAbsolute in class Filepublic int getChunkSize()
public boolean createNewFile()
throws IOException
createNewFile in class FileIOExceptionpublic boolean delete(boolean synchronous)
public File getParentFile()
getParentFile in class Filepublic long lastModified()
lastModified in class Filepublic String[] list(FilenameFilter filter)
public File[] listFiles(FilenameFilter filter)
public File[] listFiles(FileFilter filter)
public boolean isDirectory()
isDirectory in class Fileprotected void initChunkSizeFromMetadata()
protected static boolean isChildOf(String parent, String child)
parent - child - protected boolean checkParentDirs(String path, boolean createIfAbsent) throws IOException
path - createIfAbsent - IOExceptionpublic int compareTo(File file)
compareTo in interface Comparable<File>compareTo in class FileCopyright © 2012 JBoss by Red Hat. All Rights Reserved.