Interface DirectoryEntry
- All Known Implementing Classes:
CpmFormatDisk
,DosFormatDisk
,FormattedDisk
,GutenbergFormatDisk
,NakedosFormatDisk
,OzDosFormatDisk
,PascalFormatDisk
,ProdosDirectoryEntry
,ProdosFormatDisk
,RdosFormatDisk
,UniDosFormatDisk
public interface DirectoryEntry
Represents a directory on disk. This could be the main
catalog or an actual directory. (FormattedDisk implements
DirectoryEntry.)
Date Created: Mar 2, 2003
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Identify if additional directories can be created.boolean
Indicates if this disk image can create a file.createDirectory
(String name) Create a new DirectoryEntry.Create a new FileEntry.Return a name for this directory.getFiles()
Retrieve the list of files in this directory.Get the FormattedDisk associated with this DirectoryEntry.
-
Method Details
-
getDirname
String getDirname()Return a name for this directory. -
getFiles
Retrieve the list of files in this directory. Note that if this is not a directory, the return value should be null. If this a directory, the return value should always be a list - a directory with 0 entries returns an empty list.- Throws:
DiskException
-
createFile
Create a new FileEntry.- Throws:
DiskException
-
createDirectory
Create a new DirectoryEntry.- Throws:
DiskException
-
canCreateDirectories
boolean canCreateDirectories()Identify if additional directories can be created. This may indicate that directories are not available to this operating system or simply that the disk image is "locked" to writing. -
canCreateFile
boolean canCreateFile()Indicates if this disk image can create a file. If not, the reason may be as simple as it has not beem implemented to something specific about the disk. -
getFormattedDisk
FormattedDisk getFormattedDisk()Get the FormattedDisk associated with this DirectoryEntry. This is useful to interfaces that need to retrieve the associated disk.
-