All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class org.jos.java.io.File

java.lang.Object
    |
    +----org.jos.java.io.File

public class File
extends Object
JOS replacement of standard Java class java.io.File - will migrate to java.io one day.

based on kore-0.0.7's File.java by Glynn Clements

To avoid confusion, the [path]separator[char] variables are set to the same values as those in java.io.File (rather than defining a standard value). This a) trains applications to adapt to the OS separator characters (as all 100% pure apps should do) and b) avoids conversion between two separator charsets. Once JOS runs standalone, there is only one File class and only one separator charset anyway.

Version:
JOS-FileSystem 4 Preview (25-Mar-98)
Author:
Glynn Clements
Author:
Stefan Reich

Variable Index

 o pathSeparator
 o pathSeparatorChar
 o separator
 o separatorChar

Constructor Index

 o File(File, String)
modified by StefanReich
 o File(String)
 o File(String, String)
modified by StefanReich

Method Index

 o canRead()
 o canWrite()
 o delete()
 o equals(Object)
 o exists()
 o getAbsolutePath()
 o getName()
 o getParent()
 o getPath()
 o hashCode()
 o isAbsolute()
 o isDirectory()
 o isFile()
 o lastModified()
 o length()
 o list()
 o list(FilenameFilter)
 o mkdir()
 o mkdirs()
 o renameTo(File)
 o toString()

Variables

 o pathSeparator
public static final String pathSeparator
 o pathSeparatorChar
public static final char pathSeparatorChar
 o separator
public static final String separator
 o separatorChar
public static final char separatorChar

Constructors

 o File
public File(String path)
 o File
public File(File dir,
            String name)
modified by StefanReich

 o File
public File(String path,
            String name)
modified by StefanReich

Methods

 o equals
public boolean equals(Object obj)
Overrides:
equals in class Object
 o hashCode
public int hashCode()
Overrides:
hashCode in class Object
 o toString
public String toString()
Overrides:
toString in class Object
 o getPath
public String getPath()
 o isAbsolute
public boolean isAbsolute()
 o getAbsolutePath
public String getAbsolutePath()
 o getName
public String getName()
 o getParent
public String getParent()
 o canRead
public boolean canRead()
 o canWrite
public boolean canWrite()
 o exists
public boolean exists()
 o isDirectory
public boolean isDirectory()
 o isFile
public boolean isFile()
 o lastModified
public long lastModified()
 o length
public long length()
 o list
public String[] list()
 o list
public String[] list(FilenameFilter filter)
 o delete
public boolean delete()
 o renameTo
public boolean renameTo(File dest)
 o mkdir
public boolean mkdir()
 o mkdirs
public boolean mkdirs()

All Packages  Class Hierarchy  This Package  Previous  Next  Index