Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
D
G
I
J
M
R
S
T
A
addJFile(String, JFile)
- Method in class
Directory
Add a JFile to this Directory.
append(String)
- Method in class
TextFile
Append text to the end of the file.
appendLine(String)
- Method in class
TextFile
Append a new line of text to the end of the file.
D
Directory
- class
Directory
.
Directory of JFiles.
Directory(String, String, Directory)
- Constructor for class
Directory
Construct a Directory.
G
getContents()
- Method in class
TextFile
The contents of a text file.
getCreateDate()
- Method in class
JFile
The date and time of the file's creation.
getFileNames()
- Method in class
Directory
Get the contents of this Directory as an array of the file names, each of which is a String.
getModDate()
- Method in class
JFile
The date and time of the file's last modification.
getName()
- Method in class
JFile
The name of the file.
getOwner()
- Method in class
JFile
The file's owner.
getParent()
- Method in class
JFile
The Directory containing this file.
getPathName()
- Method in class
JFile
The full path to this file.
getSize()
- Method in class
Directory
The size of a directory is the number of TextFiles it contains.
getSize()
- Method in class
JFile
The size of the JFile (as defined by the child class)..
getSize()
- Method in class
TextFile
The size of a text file is the number of characters stored.
getSuffix()
- Method in class
Directory
Suffix used for printing Directory names; we define it as the (system dependent) name separator used in path names.
getSuffix()
- Method in class
JFile
Suffix used for printing file names (as defined by the child class).
getSuffix()
- Method in class
TextFile
Suffix used for printing text file names is "".
I
isRoot()
- Method in class
JFile
A JFile whose parent is null is defined to be the root (of a tree).
J
JFile
- class
JFile
.
A JFile object models a file in a hierarchical file system.
JFile(String, String, Directory)
- Constructor for class
JFile
Construct a new JFile, set owner, parent, creation and modification dates.
M
main(String[])
- Static method in class
JFile
A unit test of JFile and its subclasses.
R
retrieveJFile(String)
- Method in class
Directory
Get a JFile in this Directory, by name .
S
separator
- Static variable in class
JFile
The separator used in pathnames.
setContents(String)
- Method in class
TextFile
Replace the contents of the file.
setModDate()
- Method in class
JFile
Set the modification date to "now".
setOwner(String)
- Method in class
JFile
Set the owner for this file.
T
TextFile
- class
TextFile
.
A TextFile is a JFile that holds text.
TextFile(String, String, Directory, String)
- Constructor for class
TextFile
Construct a TextFile with initial contents.
toString()
- Method in class
JFile
How a JFile represents itself as a String.
A
D
G
I
J
M
R
S
T
Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes