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, toURL
public String getPath()
public String getAbsolutePath()
getAbsolutePath
in class File
public File getAbsoluteFile()
getAbsoluteFile
in class File
public boolean isAbsolute()
isAbsolute
in class File
public int getChunkSize()
public boolean createNewFile() throws IOException
createNewFile
in class File
IOException
public boolean delete(boolean synchronous)
public File getParentFile()
getParentFile
in class File
public long lastModified()
lastModified
in class File
public String[] list(FilenameFilter filter)
public File[] listFiles(FilenameFilter filter)
public File[] listFiles(FileFilter filter)
public boolean isDirectory()
isDirectory
in class File
protected void initChunkSizeFromMetadata()
protected static boolean isChildOf(String parent, String child)
parent
- child
- protected boolean checkParentDirs(String path, boolean createIfAbsent) throws IOException
path
- createIfAbsent
- IOException
public int compareTo(File file)
compareTo
in interface Comparable<File>
compareTo
in class File
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.