Added supportsDiskMap.

This commit is contained in:
Robert Greene 2003-12-22 07:14:48 +00:00
parent b4951201b5
commit 24c2eee291
5 changed files with 35 additions and 0 deletions

View File

@ -692,4 +692,11 @@ public class DosFormatDisk extends FormattedDisk {
public boolean needsAddress(String filetype) {
return "B".equals(filetype);
}
/**
* Indicates if this FormattedDisk supports a disk map.
*/
public boolean supportsDiskMap() {
return true;
}
}

View File

@ -362,4 +362,11 @@ public abstract class FormattedDisk extends Disk implements DirectoryEntry {
public void resizeDiskImage() {
resizeDiskImage(getFreeSpace() + getUsedSpace());
}
/**
* Indicates if this FormattedDisk supports a disk map.
*/
public boolean supportsDiskMap() {
return false;
}
}

View File

@ -522,4 +522,11 @@ public class PascalFormatDisk extends FormattedDisk {
public boolean needsAddress(String filetype) {
return false;
}
/**
* Indicates if this FormattedDisk supports a disk map.
*/
public boolean supportsDiskMap() {
return true;
}
}

View File

@ -926,4 +926,11 @@ public class ProdosFormatDisk extends FormattedDisk {
}
return false;
}
/**
* Indicates if this FormattedDisk supports a disk map.
*/
public boolean supportsDiskMap() {
return true;
}
}

View File

@ -468,4 +468,11 @@ public class RdosFormatDisk extends FormattedDisk {
public boolean needsAddress(String filetype) {
return "B".equals(filetype);
}
/**
* Indicates if this FormattedDisk supports a disk map.
*/
public boolean supportsDiskMap() {
return true;
}
}