ch.claudio.oldcomputer
Class AppleDisk
java.lang.Object
ch.claudio.oldcomputer.AppleDisk
public class AppleDisk
- extends java.lang.Object
- Author:
- claudio
|
Constructor Summary |
AppleDisk(java.io.File diskFile)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AppleDisk
public AppleDisk(java.io.File diskFile)
getSector
public byte[] getSector(int track,
int sector)
- Get a 256 byte sector addressed by track and sector number.
- Parameters:
track - sector -
- Returns:
getBlock
public byte[] getBlock(int block)
- Get a 512 byte block addressed by block number.
- Parameters:
block - number
- Returns:
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getContainertype
public Containertype getContainertype()