Added changeImageOrder.

This commit is contained in:
Robert Greene 2004-06-03 03:11:24 +00:00
parent 557179b32f
commit 0caa8011e1

View File

@ -23,6 +23,7 @@ import com.webcodepro.applecommander.storage.DiskFullException;
import com.webcodepro.applecommander.storage.FileEntry;
import com.webcodepro.applecommander.storage.FormattedDisk;
import com.webcodepro.applecommander.storage.physical.ImageOrder;
import com.webcodepro.applecommander.util.AppleUtil;
import java.util.ArrayList;
import java.util.HashMap;
@ -496,4 +497,15 @@ public class CpmFormatDisk extends FormattedDisk {
public boolean supportsDiskMap() {
return true;
}
/**
* Change to a different ImageOrder. Remains in CP/M format but
* the underlying order can chage.
* @see ImageOrder
*/
public void changeImageOrder(ImageOrder imageOrder) {
AppleUtil.changeImageOrderByTrackAndSector(getImageOrder(), imageOrder);
setImageOrder(imageOrder);
}
}