|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.egothor.io.File
public abstract class File
This class is part of the Egothor Project
Constructor Summary | |
---|---|
File(java.lang.String filename)
Constructor for the File object |
Method Summary | |
---|---|
abstract boolean |
createNewFile()
Atomically creates a new, empty file named by this abstract pathname if and only if a file with this name does not yet exist. |
abstract void |
delete()
Description of the Method |
abstract boolean |
exists()
Test whether this file exists on the filesystem. |
abstract java.lang.String |
getCanonicalPath()
Return the unique filename of this file. |
abstract java.lang.String |
getFullPath()
Return the path of this file. |
abstract java.io.File |
getJavaFile()
|
abstract java.lang.String |
getName()
|
abstract boolean |
isDirectory()
|
abstract long |
length()
Return the length of the file denoted by this abstract pathname. |
abstract File[] |
listFiles()
|
abstract boolean |
mkdir()
Creates the directory. |
abstract void |
mkparentdirs()
|
abstract File |
newFile(java.lang.String relativePath)
Constructs a sub-file. |
abstract DataOutputStream |
open4append()
Open for write in the append mode. |
abstract DataInputStream |
open4gzipread()
Description of the Method |
abstract DataOutputStream |
open4gziprewrite()
Open for write discarding the content of the file. |
abstract DataInputStream |
open4read(long offset)
Description of the Method |
abstract DataInputStream |
open4readseek(long offset)
Description of the Method |
abstract DataOutputStream |
open4rewrite()
Open for write discarding the content of the file. |
abstract DataInputOutputStream |
open4rw(long offset)
|
abstract void |
renameTo(File dest)
|
abstract long |
timestamp()
Return the timestamp of this file, or -1 when the file does not exist. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public File(java.lang.String filename)
filename
- Description of the ParameterMethod Detail |
---|
public abstract long timestamp()
public abstract java.lang.String getFullPath()
public abstract java.lang.String getCanonicalPath() throws java.io.IOException
java.io.IOException
public abstract void renameTo(File dest) throws java.io.IOException
java.io.IOException
public abstract File[] listFiles()
public abstract File newFile(java.lang.String relativePath)
public abstract long length()
public abstract boolean exists()
public abstract boolean createNewFile() throws java.io.IOException
java.io.IOException
public abstract boolean mkdir() throws java.io.IOException
java.io.IOException
public abstract DataInputStream open4read(long offset) throws java.io.IOException
java.io.IOException
- Description of the Exceptionpublic abstract DataInputStream open4gzipread() throws java.io.IOException
java.io.IOException
- Description of the Exceptionpublic abstract DataOutputStream open4append() throws java.io.IOException
java.io.IOException
- Description of the Exceptionpublic abstract DataOutputStream open4rewrite() throws java.io.IOException
java.io.IOException
- Description of the Exceptionpublic abstract DataOutputStream open4gziprewrite() throws java.io.IOException
java.io.IOException
- Description of the Exceptionpublic abstract DataInputStream open4readseek(long offset) throws java.io.IOException
java.io.IOException
- Description of the Exceptionpublic abstract DataInputOutputStream open4rw(long offset) throws java.io.IOException
java.io.IOException
public abstract void delete()
public abstract boolean isDirectory()
public abstract java.lang.String getName()
public abstract java.io.File getJavaFile()
public abstract void mkparentdirs()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |