|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webcodepro.applecommander.storage.physical.ImageOrder com.webcodepro.applecommander.storage.physical.DosOrder
public class DosOrder
Supports disk images stored in DOS physical order.
Constructor Summary | |
---|---|
DosOrder(ByteArrayImageLayout diskImageManager)
Construct a DosOrder. |
Method Summary | |
---|---|
protected int |
getOffset(int track,
int sector)
Compute the track and sector offset into the disk image. |
boolean |
isBlockDevice()
Indicates that this device is block ordered. |
boolean |
isTrackAndSectorDevice()
Indicates that this device is track and sector ordered. |
byte[] |
readBlock(int block)
Read the block from the disk image. |
byte[] |
readSector(int track,
int sector)
Retrieve the specified sector. |
void |
writeBlock(int block,
byte[] data)
Write the block to the disk image. |
void |
writeSector(int track,
int sector,
byte[] bytes)
Write the specified sector. |
Methods inherited from class com.webcodepro.applecommander.storage.physical.ImageOrder |
---|
format, getBlocksOnDevice, getDiskImageManager, getPhysicalSize, getSectorsPerDisk, getSectorsPerTrack, getTracksPerDisk, isSizeApprox, readBytes, setDiskImageManager, writeBytes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DosOrder(ByteArrayImageLayout diskImageManager)
Method Detail |
---|
public boolean isBlockDevice()
isBlockDevice
in class ImageOrder
public boolean isTrackAndSectorDevice()
isTrackAndSectorDevice
in class ImageOrder
public byte[] readSector(int track, int sector) throws java.lang.IllegalArgumentException
readSector
in class ImageOrder
java.lang.IllegalArgumentException
public void writeSector(int track, int sector, byte[] bytes) throws java.lang.IllegalArgumentException
writeSector
in class ImageOrder
java.lang.IllegalArgumentException
protected int getOffset(int track, int sector) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public byte[] readBlock(int block)
readBlock
in class ImageOrder
public void writeBlock(int block, byte[] data)
writeBlock
in class ImageOrder
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |