|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webcodepro.applecommander.storage.Disk
com.webcodepro.applecommander.storage.FormattedDisk
public abstract class FormattedDisk
Abstract representation of a formatted Apple2 disk (floppy, 800k, hard disk).
Date created: Oct 5, 2002 3:51:44 PM
Nested Class Summary | |
---|---|
class |
FormattedDisk.DiskInformation
Use this inner class for label/value mappings in the disk info page. |
static interface |
FormattedDisk.DiskUsage
Use this inner interface for managing the disk usage data. |
class |
FormattedDisk.FileColumnHeader
|
Nested classes/interfaces inherited from class com.webcodepro.applecommander.storage.Disk |
---|
Disk.FilenameFilter |
Field Summary | |
---|---|
static int |
FILE_DISPLAY_DETAIL
|
static int |
FILE_DISPLAY_NATIVE
|
static int |
FILE_DISPLAY_STANDARD
This inner class represents the column header information used in the directory display. |
Fields inherited from class com.webcodepro.applecommander.storage.Disk |
---|
APPLE_10MB_HARDDISK, APPLE_140KB_DISK, APPLE_140KB_NIBBLE_DISK, APPLE_20MB_HARDDISK, APPLE_32MB_HARDDISK, APPLE_5MB_HARDDISK, APPLE_800KB_2IMG_DISK, APPLE_800KB_DISK, BLOCK_SIZE, DOS33_SECTORS_ON_140KB_DISK, PRODOS_BLOCKS_ON_140KB_DISK, SECTOR_SIZE |
Constructor Summary | |
---|---|
FormattedDisk(java.lang.String filename,
ImageOrder imageOrder)
Constructor for FormattedDisk. |
Method Summary | |
---|---|
abstract boolean |
canDeleteFile()
Indicates if this disk image can delete a file. |
abstract boolean |
canHaveDirectories()
Identify if this disk format is capable of having directories. |
abstract boolean |
canReadFileData()
Indicates if this disk image can read data from a file. |
abstract boolean |
canWriteFileData()
Indicates if this disk image can write data to a file. |
abstract void |
changeImageOrder(ImageOrder imageOrder)
Change the physical ordering of the disk. |
abstract void |
format()
Format the disk. |
abstract int[] |
getBitmapDimensions()
Get suggested dimensions for display of bitmap. |
abstract java.lang.String[] |
getBitmapLabels()
Get the labels to use in the bitmap. |
abstract int |
getBitmapLength()
Get the length of the bitmap. |
java.util.List |
getDiskInformation()
Get disk information. |
abstract java.lang.String |
getDiskName()
Return the name of the disk. |
abstract FormattedDisk.DiskUsage |
getDiskUsage()
Get the disk usage iterator. |
protected FileEntry |
getFile(java.util.List files,
java.lang.String filename)
Recursive routine to locate a specific file by filename. |
FileEntry |
getFile(java.lang.String filename)
Locate a specific file by filename. |
java.util.List |
getFileColumnHeaders(int displayMode)
Get the standard file column header information. |
abstract byte[] |
getFileData(FileEntry fileEntry)
Get the data associated with the specified FileEntry. |
abstract java.lang.String[] |
getFiletypes()
Returns a list of possible file types. |
abstract java.lang.String |
getFormat()
Identify the operating system format of this disk. |
FormattedDisk |
getFormattedDisk()
Get the FormattedDisk associated with this DirectoryEntry. |
abstract int |
getFreeSpace()
Return the amount of free space in bytes. |
abstract int |
getLogicalDiskNumber()
Returns the logical disk number. |
abstract java.lang.String |
getSuggestedFilename(java.lang.String filename)
Returns a valid filename for the given filename. |
abstract java.lang.String |
getSuggestedFiletype(java.lang.String filename)
Returns a valid filetype for the given filename. |
abstract int |
getUsedSpace()
Return the amount of used space in bytes. |
abstract boolean |
needsAddress(java.lang.String filetype)
Indicates if this filetype requires an address component. |
void |
resizeDiskImage()
Resize the disk image to be its full size. |
abstract void |
setFileData(FileEntry fileEntry,
byte[] fileData)
Writes the raw bytes into the file. |
abstract boolean |
supportsDeletedFiles()
Indicates if this disk format supports "deleted" files. |
boolean |
supportsDiskMap()
Indicates if this FormattedDisk supports a disk map. |
protected void |
writeBootCode()
Write the AppleCommander boot code to track 0 sector 0 of the disk. |
Methods inherited from class com.webcodepro.applecommander.storage.Disk |
---|
getDiskImageManager, getFilename, getFilenameFilters, getFormattedDisks, getImageOrder, getPhysicalSize, hasChanged, is140KbDisk, is2ImgOrder, is800KbDisk, isCompressed, isCpmFormat, isDosFormat, isDosOrder, isNewImage, isNibbleOrder, isOzDosFormat, isPascalFormat, isProdosFormat, isProdosOrder, isRdosFormat, isUniDosFormat, readBlock, readSector, resizeDiskImage, save, saveAs, setFilename, setImageOrder, writeBlock, writeSector |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.webcodepro.applecommander.storage.DirectoryEntry |
---|
canCreateDirectories, canCreateFile, createDirectory, createFile, getFiles |
Field Detail |
---|
public static final int FILE_DISPLAY_STANDARD
public static final int FILE_DISPLAY_NATIVE
public static final int FILE_DISPLAY_DETAIL
Constructor Detail |
---|
public FormattedDisk(java.lang.String filename, ImageOrder imageOrder)
Method Detail |
---|
public abstract java.lang.String getDiskName()
public abstract java.lang.String getFormat()
public abstract int getFreeSpace()
public abstract int getUsedSpace()
public abstract int[] getBitmapDimensions()
public abstract int getBitmapLength()
public abstract FormattedDisk.DiskUsage getDiskUsage()
public abstract java.lang.String[] getBitmapLabels()
public java.util.List getDiskInformation()
public java.util.List getFileColumnHeaders(int displayMode)
public abstract boolean supportsDeletedFiles()
public abstract boolean canReadFileData()
public abstract boolean canWriteFileData()
public abstract boolean canHaveDirectories()
public abstract boolean canDeleteFile()
public abstract byte[] getFileData(FileEntry fileEntry)
FileEntry.getFileData()
public FileEntry getFile(java.lang.String filename)
protected FileEntry getFile(java.util.List files, java.lang.String filename)
public abstract void format()
protected void writeBootCode()
public abstract int getLogicalDiskNumber()
public abstract java.lang.String getSuggestedFilename(java.lang.String filename)
public abstract java.lang.String getSuggestedFiletype(java.lang.String filename)
public abstract java.lang.String[] getFiletypes()
public abstract boolean needsAddress(java.lang.String filetype)
public FormattedDisk getFormattedDisk()
getFormattedDisk
in interface DirectoryEntry
public void resizeDiskImage()
public boolean supportsDiskMap()
public abstract void changeImageOrder(ImageOrder imageOrder)
public abstract void setFileData(FileEntry fileEntry, byte[] fileData) throws DiskFullException
DiskFullException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |