A D G M R S T

A

addTextFile(String, TextFile) - Method in class Directory
Add a TextFile 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 TextFiles.
Directory() - Constructor for class Directory
Construct a Directory.

G

getContents() - Method in class TextFile
The contents of a file.
getCreateDate() - Method in class TextFile
The data 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 TextFile
The date and time of the file's last modification.
getOwner() - Method in class TextFile
The file's owner.
getSize() - Method in class Directory
The size of a directory is the number of TextFiles it contains.
getSize() - Method in class TextFile
The size of a file.

M

main(String[]) - Static method in class Directory
main, for unit testing.
main(String[]) - Static method in class TextFile
A definition of main(), used only for testing this class.

R

retrieveTextFile(String) - Method in class Directory
Get a TextFile in this Directory, by name .

S

setContents(String) - Method in class TextFile
Replace the contents of the file.

T

TextFile - class TextFile.
A TextFile mimics the sort of text file that one finds on a computer's file system.
TextFile(String, String) - Constructor for class TextFile
Construct a new TextFile with given owner and contents; set the creation and modification dates.

A D G M R S T