Class WozOrder
java.lang.Object
com.webcodepro.applecommander.storage.physical.ImageOrder
com.webcodepro.applecommander.storage.physical.WozOrder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblockToSector35
(int block) int
Answer with the number of blocks on this device.getName()
Return the name of this image order.int
Answer with the physical size of this disk volume.int
Answer with the number of sectors per track on this device.boolean
Indicates that this device is block ordered.boolean
Indicates that this device is track and sector ordered.byte[]
readBlock
(int block) Read the block from the disk image.byte[]
readBlock525
(int block) byte[]
readSector
(int track, int sector) Retrieve the specified sector.byte[]
readSector35
(int track, int sector) byte[]
readSector525
(int track, int sector) protected byte[]
readTrackData
(int track) protected byte[]
readTrackDataWOZ1
(int track) protected byte[]
readTrackDataWOZ2
(int track) protected byte[]
transformBitstream
(byte[] rawData, int bitCount) 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, getDiskImageManager, getSectorsPerDisk, getTracksPerDisk, isSizeApprox, readBytes, setDiskImageManager, writeBytes
-
Field Details
-
WOZ1_MAGIC
public static final int WOZ1_MAGIC- See Also:
-
WOZ2_MAGIC
public static final int WOZ2_MAGIC- See Also:
-
INFO_CHUNK_ID
public static final int INFO_CHUNK_ID- See Also:
-
TMAP_CHUNK_ID
public static final int TMAP_CHUNK_ID- See Also:
-
TRKS_CHUNK_ID
public static final int TRKS_CHUNK_ID- See Also:
-
FLUX_CHUNK_ID
public static final int FLUX_CHUNK_ID- See Also:
-
META_CHUNK_ID
public static final int META_CHUNK_ID- See Also:
-
-
Constructor Details
-
WozOrder
-
-
Method Details
-
getName
Description copied from class:ImageOrder
Return the name of this image order.- Specified by:
getName
in classImageOrder
-
getPhysicalSize
public int getPhysicalSize()Description copied from class:ImageOrder
Answer with the physical size of this disk volume.- Overrides:
getPhysicalSize
in classImageOrder
-
getSectorsPerTrack
public int getSectorsPerTrack()Description copied from class:ImageOrder
Answer with the number of sectors per track on this device.- Overrides:
getSectorsPerTrack
in classImageOrder
-
readBlock
public byte[] readBlock(int block) Description copied from class:ImageOrder
Read the block from the disk image.- Specified by:
readBlock
in classImageOrder
-
readBlock525
public byte[] readBlock525(int block) -
blockToSector35
-
writeBlock
public void writeBlock(int block, byte[] data) Description copied from class:ImageOrder
Write the block to the disk image.- Specified by:
writeBlock
in classImageOrder
-
isBlockDevice
public boolean isBlockDevice()Description copied from class:ImageOrder
Indicates that this device is block ordered.- Specified by:
isBlockDevice
in classImageOrder
-
isTrackAndSectorDevice
public boolean isTrackAndSectorDevice()Description copied from class:ImageOrder
Indicates that this device is track and sector ordered.- Specified by:
isTrackAndSectorDevice
in classImageOrder
-
getBlocksOnDevice
public int getBlocksOnDevice()Description copied from class:ImageOrder
Answer with the number of blocks on this device.- Overrides:
getBlocksOnDevice
in classImageOrder
-
readSector
Description copied from class:ImageOrder
Retrieve the specified sector.- Specified by:
readSector
in classImageOrder
- Throws:
IllegalArgumentException
-
readSector525
- Throws:
IllegalArgumentException
-
readSector35
- Throws:
IllegalArgumentException
-
writeSector
Description copied from class:ImageOrder
Write the specified sector.- Specified by:
writeSector
in classImageOrder
- Throws:
IllegalArgumentException
-
readTrackData
protected byte[] readTrackData(int track) -
readTrackDataWOZ2
protected byte[] readTrackDataWOZ2(int track) -
readTrackDataWOZ1
protected byte[] readTrackDataWOZ1(int track) -
transformBitstream
protected byte[] transformBitstream(byte[] rawData, int bitCount)
-