From aa0475a80294588b08358e0734a0e1d2e9e1f9d3 Mon Sep 17 00:00:00 2001 From: Robert Greene Date: Thu, 3 Jun 2004 03:15:32 +0000 Subject: [PATCH] Added setFilename, made setImageOrder public, added some constants. --- src/com/webcodepro/applecommander/storage/Disk.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/com/webcodepro/applecommander/storage/Disk.java b/src/com/webcodepro/applecommander/storage/Disk.java index abe9f76..097f119 100644 --- a/src/com/webcodepro/applecommander/storage/Disk.java +++ b/src/com/webcodepro/applecommander/storage/Disk.java @@ -67,6 +67,8 @@ public class Disk { public static final int BLOCK_SIZE = 512; public static final int SECTOR_SIZE = 256; + public static final int PRODOS_BLOCKS_ON_140KB_DISK = 280; + public static final int DOS33_SECTORS_ON_140KB_DISK = 560; public static final int APPLE_140KB_DISK = 143360; public static final int APPLE_140KB_NIBBLE_DISK = 232960; public static final int APPLE_800KB_DISK = 819200; @@ -104,7 +106,7 @@ public class Disk { new FilenameFilter("140K DOS Ordered Images (*.do, *.dsk)", "*.do; *.dsk; *.do.gz; *.dsk.gz"), new FilenameFilter("140K Nibbilized Images (*.nib)", - "*.nib, *.nib.gz"), + "*.nib; *.nib.gz"), new FilenameFilter("140K ProDOS Ordered Images (*.po)", "*.po; *.po.gz"), new FilenameFilter("800K ProDOS Ordered Images (*.2mg, *.2img)", @@ -246,6 +248,13 @@ public class Disk { return filename; } + /** + * Sets the filename. + */ + public void setFilename(String filename) { + this.filename = filename; + } + /** * Indicate if this disk is GZIP compressed. */ @@ -527,7 +536,7 @@ public class Disk { /** * Set the physical ordering of the disk. */ - public void setImageOrder(ImageOrder imageOrder) { + protected void setImageOrder(ImageOrder imageOrder) { this.imageOrder = imageOrder; } }