Class Nibble53Disk525Codec
java.lang.Object
org.applecommander.device.nibble.Nibble53Disk525Codec
- All Implemented Interfaces:
CapabilityProvider, NibbleDiskCodec
5&3 nibble encoder for 13-sector disks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancan(Capability capability) Helps identify capabilities of the 5&3 encoder.decode(DataBuffer rawData) Decode the buffer from the raw disk bytes to actual data.intNumber of bytes in the decoded buffer.encode(DataBuffer data) Encode the data buffer into disk bytes.intNumber of bytes in the raw (encoded) buffer.int[]The read translation table.int[]The write translation table.
-
Constructor Details
-
Nibble53Disk525Codec
public Nibble53Disk525Codec()
-
-
Method Details
-
can
Helps identify capabilities of the 5&3 encoder.- Specified by:
canin interfaceCapabilityProvider
-
encodedSize
public int encodedSize()Number of bytes in the raw (encoded) buffer.- Specified by:
encodedSizein interfaceNibbleDiskCodec
-
decodedSize
public int decodedSize()Number of bytes in the decoded buffer. For Disk II devices, this is 256 bytes.- Specified by:
decodedSizein interfaceNibbleDiskCodec
-
readTranslateTable
public int[] readTranslateTable()The read translation table.- Specified by:
readTranslateTablein interfaceNibbleDiskCodec
-
writeTranslateTable
public int[] writeTranslateTable()The write translation table.- Specified by:
writeTranslateTablein interfaceNibbleDiskCodec
-
decode
Decode the buffer from the raw disk bytes to actual data.- Specified by:
decodein interfaceNibbleDiskCodec
-
encode
Encode the data buffer into disk bytes. Not implemented for 5&3 encoding.- Specified by:
encodein interfaceNibbleDiskCodec
-