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) |
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() |
createTempFile, createTempFile, listRoots, toPathpublic String getPath()
public String getAbsolutePath()
getAbsolutePath in class Filepublic File getAbsoluteFile()
getAbsoluteFile in class Filepublic String getCanonicalPath() throws IOException
getCanonicalPath in class FileIOExceptionpublic File getCanonicalFile() throws IOException
getCanonicalFile in class FileIOExceptionpublic boolean isAbsolute()
isAbsolute in class Filepublic void deleteOnExit()
deleteOnExit in class Filepublic int getChunkSize()
public boolean createNewFile()
throws IOException
createNewFile in class FileIOException@Deprecated public boolean delete(boolean synchronous)
public 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) throws IOException
path - createIfAbsent - IOExceptionpublic boolean canExecute()
canExecute in class Filepublic int compareTo(File file)
compareTo in interface Comparable<File>compareTo in class Filepublic URL toURL() throws MalformedURLException
toURL in class FileMalformedURLExceptionpublic 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 © 2017 JBoss, a division of Red Hat. All Rights Reserved.