|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.egothor.io.File
org.egothor.io.FileLocal
public class FileLocal
This class is part of the Egothor Project
| Constructor Summary | |
|---|---|
FileLocal(java.lang.String filename)
Constructor for the FileLocal object |
|
| Method Summary | |
|---|---|
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. |
void |
delete()
Deletes the file or the whole directory. |
boolean |
exists()
Test whether this file exists on the filesystem. |
java.lang.String |
getCanonicalPath()
Return the unique filename of this file. |
java.lang.String |
getFullPath()
Return the path of this file. |
java.io.File |
getJavaFile()
|
java.lang.String |
getName()
|
boolean |
isDirectory()
|
long |
length()
Return the length of the file denoted by this abstract pathname. |
File[] |
listFiles()
|
boolean |
mkdir()
Creates the directory. |
void |
mkparentdirs()
|
File |
newFile(java.lang.String relativePath)
Constructs a sub-file. |
DataOutputStream |
open4append()
Description of the Method |
DataInputStream |
open4gzipread()
Description of the Method |
DataOutputStream |
open4gziprewrite()
Open for write discarding the content of the file. |
DataInputStream |
open4read(long offset)
Description of the Method |
DataInputStream |
open4readseek(long offset)
Description of the Method |
DataOutputStream |
open4rewrite()
Description of the Method |
DataInputOutputStream |
open4rw(long offset)
This method returns R/W stream with initial seek at a given offset position. |
void |
renameTo(File dest)
|
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 FileLocal(java.lang.String filename)
filename - Description of the Parameter| Method Detail |
|---|
public long length()
File
length in class Filepublic File[] listFiles()
listFiles in class Filepublic File newFile(java.lang.String relativePath)
File
newFile in class Filepublic long timestamp()
File
timestamp in class Filepublic java.lang.String getFullPath()
File
getFullPath in class File
public void renameTo(File dest)
throws java.io.IOException
renameTo in class Filejava.io.IOException
public DataInputStream open4read(long offset)
throws java.io.IOException
open4read in class Filejava.io.IOException - Description of the Exception
public DataInputStream open4readseek(long offset)
throws java.io.IOException
open4readseek in class Filejava.io.IOException - Description of the Exception
public boolean mkdir()
throws java.io.IOException
File
mkdir in class Filejava.io.IOExceptionpublic final void mkparentdirs()
mkparentdirs in class File
public DataOutputStream open4append()
throws java.io.IOException
open4append in class Filejava.io.IOException - Description of the Exception
public DataOutputStream open4rewrite()
throws java.io.IOException
open4rewrite in class Filejava.io.IOException - Description of the Exception
public DataInputOutputStream open4rw(long offset)
throws java.io.IOException
open4rw in class Fileoffset - the initial offset position
java.io.IOExceptionpublic void delete()
delete in class Filejava.io.IOException - Description of the Exceptionpublic boolean exists()
File
exists in class File
public boolean createNewFile()
throws java.io.IOException
File
createNewFile in class Filejava.io.IOException
public DataInputStream open4gzipread()
throws java.io.IOException
File
open4gzipread in class Filejava.io.IOException - Description of the Exception
public DataOutputStream open4gziprewrite()
throws java.io.IOException
File
open4gziprewrite in class Filejava.io.IOException - Description of the Exception
public java.lang.String getCanonicalPath()
throws java.io.IOException
File
getCanonicalPath in class Filejava.io.IOExceptionpublic boolean isDirectory()
isDirectory in class Filepublic java.lang.String getName()
getName in class Filepublic java.io.File getJavaFile()
getJavaFile in class File
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||