diff --git a/src/com/webcodepro/applecommander/storage/FormattedDisk.java b/src/com/webcodepro/applecommander/storage/FormattedDisk.java index 3a31ed6..58b2c94 100644 --- a/src/com/webcodepro/applecommander/storage/FormattedDisk.java +++ b/src/com/webcodepro/applecommander/storage/FormattedDisk.java @@ -32,7 +32,7 @@ import java.util.List; * Date created: Oct 5, 2002 3:51:44 PM * @author: Rob Greene */ -public abstract class FormattedDisk extends Disk { +public abstract class FormattedDisk extends Disk implements DirectoryEntry { /** * Use this inner class for label/value mappings in the disk info page. */ @@ -126,26 +126,11 @@ public abstract class FormattedDisk extends Disk { super(filename, diskImage); } - /** - * Identify if this disk format is capable of having directories. - */ - public abstract boolean canHaveDirectories(); - /** * Return the name of the disk. Not the physical file name, * but "DISK VOLUME #xxx" (DOS 3.3) or "/MY.DISK" (ProDOS). */ public abstract String getDiskName(); - - /** - * Retrieve a list of files. - */ - public abstract List getFiles(); - - /** - * Create a new FileEntry. - */ - public abstract FileEntry createFile() throws DiskFullException; /** * Identify the operating system format of this disk. @@ -245,13 +230,11 @@ public abstract class FormattedDisk extends Disk { * to something specific about the disk (such as read-only image). */ public abstract boolean canWriteFileData(); - + /** - * 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. + * Identify if this disk format is capable of having directories. */ - public abstract boolean canCreateFile(); + public abstract boolean canHaveDirectories(); /** * Indicates if this disk image can delete a file. @@ -290,7 +273,8 @@ public abstract class FormattedDisk extends Disk { for (int i=0; i