Constructor and Description |
---|
File(String filename)
Constructor for the File object
|
Modifier and Type | Method and Description |
---|---|
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 String |
getCanonicalPath()
Return the unique filename of this file.
|
abstract String |
getFullPath()
Return the path of this file.
|
abstract File |
getJavaFile() |
abstract 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(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.
|
public File(String filename)
filename
- Description of the Parameterpublic abstract long timestamp()
public abstract String getFullPath()
public abstract String getCanonicalPath() throws IOException
IOException
public abstract void renameTo(File dest) throws IOException
IOException
public abstract File[] listFiles()
public abstract long length()
public abstract boolean exists()
public abstract boolean createNewFile() throws IOException
IOException
public abstract boolean mkdir() throws IOException
IOException
public abstract DataInputStream open4read(long offset) throws IOException
IOException
- Description of the Exceptionpublic abstract DataInputStream open4gzipread() throws IOException
IOException
- Description of the Exceptionpublic abstract DataOutputStream open4append() throws IOException
IOException
- Description of the Exceptionpublic abstract DataOutputStream open4rewrite() throws IOException
IOException
- Description of the Exceptionpublic abstract DataOutputStream open4gziprewrite() throws IOException
IOException
- Description of the Exceptionpublic abstract DataInputStream open4readseek(long offset) throws IOException
IOException
- Description of the Exceptionpublic abstract DataInputOutputStream open4rw(long offset) throws IOException
IOException
public abstract void delete()
public abstract boolean isDirectory()
public abstract String getName()
public abstract File getJavaFile()
public abstract void mkparentdirs()
Copyright © 2016 Egothor. All Rights Reserved.