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() |
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() |
createTempFile, createTempFile, listRoots, toPath
public String getPath()
public String getAbsolutePath()
getAbsolutePath
in class File
public File getAbsoluteFile()
getAbsoluteFile
in class File
public String getCanonicalPath() throws IOException
getCanonicalPath
in class File
IOException
public File getCanonicalFile() throws IOException
getCanonicalFile
in class File
IOException
public boolean isAbsolute()
isAbsolute
in class File
public void deleteOnExit()
deleteOnExit
in class File
public int getChunkSize()
public boolean createNewFile() throws IOException
createNewFile
in class File
IOException
public File getParentFile()
getParentFile
in class File
public long lastModified()
lastModified
in class File
public boolean setLastModified(long time)
setLastModified
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 boolean canExecute()
canExecute
in class File
public int compareTo(File file)
compareTo
in interface Comparable<File>
compareTo
in class File
public URL toURL() throws MalformedURLException
toURL
in class File
MalformedURLException
public boolean setReadOnly()
setReadOnly
in class File
public boolean setWritable(boolean writable, boolean ownerOnly)
setWritable
in class File
public boolean setWritable(boolean writable)
setWritable
in class File
public boolean setReadable(boolean readable, boolean ownerOnly)
setReadable
in class File
public boolean setReadable(boolean readable)
setReadable
in class File
public boolean setExecutable(boolean executable, boolean ownerOnly)
setExecutable
in class File
public boolean setExecutable(boolean executable)
setExecutable
in class File
public long getTotalSpace()
getTotalSpace
in class File
public long getFreeSpace()
getFreeSpace
in class File
public long getUsableSpace()
getUsableSpace
in class File
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.