|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 ParameterMethod Detail |
---|
public long length()
File
length
in class File
public File[] listFiles()
listFiles
in class File
public File newFile(java.lang.String relativePath)
File
newFile
in class File
public long timestamp()
File
timestamp
in class File
public java.lang.String getFullPath()
File
getFullPath
in class File
public void renameTo(File dest) throws java.io.IOException
renameTo
in class File
java.io.IOException
public DataInputStream open4read(long offset) throws java.io.IOException
open4read
in class File
java.io.IOException
- Description of the Exceptionpublic DataInputStream open4readseek(long offset) throws java.io.IOException
open4readseek
in class File
java.io.IOException
- Description of the Exceptionpublic boolean mkdir() throws java.io.IOException
File
mkdir
in class File
java.io.IOException
public final void mkparentdirs()
mkparentdirs
in class File
public DataOutputStream open4append() throws java.io.IOException
open4append
in class File
java.io.IOException
- Description of the Exceptionpublic DataOutputStream open4rewrite() throws java.io.IOException
open4rewrite
in class File
java.io.IOException
- Description of the Exceptionpublic DataInputOutputStream open4rw(long offset) throws java.io.IOException
open4rw
in class File
offset
- the initial offset position
java.io.IOException
public void delete()
delete
in class File
java.io.IOException
- Description of the Exceptionpublic boolean exists()
File
exists
in class File
public boolean createNewFile() throws java.io.IOException
File
createNewFile
in class File
java.io.IOException
public DataInputStream open4gzipread() throws java.io.IOException
File
open4gzipread
in class File
java.io.IOException
- Description of the Exceptionpublic DataOutputStream open4gziprewrite() throws java.io.IOException
File
open4gziprewrite
in class File
java.io.IOException
- Description of the Exceptionpublic java.lang.String getCanonicalPath() throws java.io.IOException
File
getCanonicalPath
in class File
java.io.IOException
public boolean isDirectory()
isDirectory
in class File
public java.lang.String getName()
getName
in class File
public java.io.File getJavaFile()
getJavaFile
in class File
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |