public class GridFile
extends java.io.File
| Modifier and Type | Class and Description |
|---|---|
static class |
GridFile.Metadata |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String[] |
_list(java.lang.Object filter) |
protected java.io.File[] |
_listFiles(java.lang.Object filter) |
boolean |
canExecute() |
boolean |
canRead() |
boolean |
canWrite() |
protected boolean |
checkParentDirs(java.lang.String path,
boolean createIfAbsent)
Checks whether the parent directories are present (and are directories).
|
int |
compareTo(java.io.File file) |
boolean |
createNewFile() |
boolean |
delete() |
void |
deleteOnExit() |
boolean |
equals(java.lang.Object obj) |
boolean |
exists() |
protected static java.lang.String |
filename(java.lang.String fullPath) |
java.io.File |
getAbsoluteFile() |
java.lang.String |
getAbsolutePath() |
java.io.File |
getCanonicalFile() |
java.lang.String |
getCanonicalPath() |
int |
getChunkSize()
Guaranteed to be a power of two
|
long |
getFreeSpace() |
java.lang.String |
getName() |
java.lang.String |
getParent() |
java.io.File |
getParentFile() |
java.lang.String |
getPath()
Returns path of this file.
|
long |
getTotalSpace() |
long |
getUsableSpace() |
int |
hashCode() |
protected void |
initChunkSizeFromMetadata() |
boolean |
isAbsolute() |
protected static boolean |
isChildOf(java.lang.String parent,
java.lang.String child)
Verifies whether child is a child (dir or file) of parent
|
boolean |
isDirectory() |
boolean |
isFile() |
boolean |
isHidden() |
long |
lastModified() |
long |
length() |
java.lang.String[] |
list() |
java.lang.String[] |
list(java.io.FilenameFilter filter) |
java.io.File[] |
listFiles() |
java.io.File[] |
listFiles(java.io.FileFilter filter) |
java.io.File[] |
listFiles(java.io.FilenameFilter filter) |
boolean |
mkdir() |
boolean |
mkdirs() |
boolean |
renameTo(java.io.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) |
java.lang.String |
toString() |
java.net.URI |
toURI() |
java.net.URL |
toURL() |
public java.lang.String getName()
getName in class java.io.Filepublic java.lang.String getPath()
getPath in class java.io.Filepublic java.lang.String getAbsolutePath()
getAbsolutePath in class java.io.Filepublic java.io.File getAbsoluteFile()
getAbsoluteFile in class java.io.Filepublic java.lang.String getCanonicalPath()
throws java.io.IOException
getCanonicalPath in class java.io.Filejava.io.IOExceptionpublic java.io.File getCanonicalFile()
throws java.io.IOException
getCanonicalFile in class java.io.Filejava.io.IOExceptionpublic boolean isAbsolute()
isAbsolute in class java.io.Filepublic boolean renameTo(java.io.File dest)
renameTo in class java.io.Filepublic void deleteOnExit()
deleteOnExit in class java.io.Filepublic long length()
length in class java.io.Filepublic int getChunkSize()
public boolean createNewFile()
throws java.io.IOException
createNewFile in class java.io.Filejava.io.IOExceptionpublic boolean delete()
delete in class java.io.Filepublic boolean mkdir()
mkdir in class java.io.Filepublic boolean mkdirs()
mkdirs in class java.io.Filepublic boolean exists()
exists in class java.io.Filepublic java.lang.String getParent()
getParent in class java.io.Filepublic java.io.File getParentFile()
getParentFile in class java.io.Filepublic long lastModified()
lastModified in class java.io.Filepublic boolean setLastModified(long time)
setLastModified in class java.io.Filepublic java.lang.String[] list()
list in class java.io.Filepublic java.lang.String[] list(java.io.FilenameFilter filter)
list in class java.io.Filepublic java.io.File[] listFiles()
listFiles in class java.io.Filepublic java.io.File[] listFiles(java.io.FilenameFilter filter)
listFiles in class java.io.Filepublic java.io.File[] listFiles(java.io.FileFilter filter)
listFiles in class java.io.Filepublic boolean isDirectory()
isDirectory in class java.io.Filepublic boolean isFile()
isFile in class java.io.Fileprotected void initChunkSizeFromMetadata()
protected java.io.File[] _listFiles(java.lang.Object filter)
protected java.lang.String[] _list(java.lang.Object filter)
protected static boolean isChildOf(java.lang.String parent,
java.lang.String child)
parent - child - protected static java.lang.String filename(java.lang.String fullPath)
protected boolean checkParentDirs(java.lang.String path,
boolean createIfAbsent)
throws java.io.IOException
path - createIfAbsent - java.io.IOExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.io.Filepublic boolean canRead()
canRead in class java.io.Filepublic boolean canWrite()
canWrite in class java.io.Filepublic boolean isHidden()
isHidden in class java.io.Filepublic boolean canExecute()
canExecute in class java.io.Filepublic int compareTo(java.io.File file)
compareTo in interface java.lang.Comparable<java.io.File>compareTo in class java.io.Filepublic int hashCode()
hashCode in class java.io.Filepublic java.lang.String toString()
toString in class java.io.Filepublic java.net.URL toURL()
throws java.net.MalformedURLException
toURL in class java.io.Filejava.net.MalformedURLExceptionpublic java.net.URI toURI()
toURI in class java.io.Filepublic boolean setReadOnly()
setReadOnly in class java.io.Filepublic boolean setWritable(boolean writable,
boolean ownerOnly)
setWritable in class java.io.Filepublic boolean setWritable(boolean writable)
setWritable in class java.io.Filepublic boolean setReadable(boolean readable,
boolean ownerOnly)
setReadable in class java.io.Filepublic boolean setReadable(boolean readable)
setReadable in class java.io.Filepublic boolean setExecutable(boolean executable,
boolean ownerOnly)
setExecutable in class java.io.Filepublic boolean setExecutable(boolean executable)
setExecutable in class java.io.Filepublic long getTotalSpace()
getTotalSpace in class java.io.Filepublic long getFreeSpace()
getFreeSpace in class java.io.Filepublic long getUsableSpace()
getUsableSpace in class java.io.File