public class GridFile extends File
| Modifier and Type | Class and Description |
|---|---|
static class |
GridFile.Metadata |
| Modifier and Type | Method and Description |
|---|---|
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() |
void |
deleteOnExit() |
boolean |
equals(Object obj) |
boolean |
exists() |
protected static String |
filename(String fullPath) |
File |
getAbsoluteFile() |
String |
getAbsolutePath() |
File |
getCanonicalFile() |
String |
getCanonicalPath() |
int |
getChunkSize()
Guaranteed to be a power of two
|
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() |
public String getPath()
public String getAbsolutePath()
getAbsolutePath in class Filepublic File getAbsoluteFile()
getAbsoluteFile in class Filepublic String getCanonicalPath()
getCanonicalPath in class Filepublic File getCanonicalFile()
getCanonicalFile in class Filepublic boolean isAbsolute()
isAbsolute in class Filepublic void deleteOnExit()
deleteOnExit in class Filepublic int getChunkSize()
public boolean createNewFile()
createNewFile in class Filepublic File getParentFile()
getParentFile in class Filepublic long lastModified()
lastModified in class Filepublic boolean setLastModified(long time)
setLastModified 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)
path - createIfAbsent - public boolean canExecute()
canExecute in class Filepublic boolean setReadOnly()
setReadOnly in class Filepublic boolean setWritable(boolean writable,
boolean ownerOnly)
setWritable in class Filepublic boolean setWritable(boolean writable)
setWritable in class Filepublic boolean setReadable(boolean readable,
boolean ownerOnly)
setReadable in class Filepublic boolean setReadable(boolean readable)
setReadable in class Filepublic boolean setExecutable(boolean executable,
boolean ownerOnly)
setExecutable in class Filepublic boolean setExecutable(boolean executable)
setExecutable in class Filepublic long getTotalSpace()
getTotalSpace in class Filepublic long getFreeSpace()
getFreeSpace in class Filepublic long getUsableSpace()
getUsableSpace in class FileCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.