ch.claudio.oldcomputer
Class AppleDisk

java.lang.Object
  extended by ch.claudio.oldcomputer.AppleDisk

public class AppleDisk
extends java.lang.Object

Author:
claudio

Constructor Summary
AppleDisk(java.io.File diskFile)
           
 
Method Summary
 byte[] getBlock(int block)
          Get a 512 byte block addressed by block number.
 Containertype getContainertype()
           
 byte[] getSector(int track, int sector)
          Get a 256 byte sector addressed by track and sector number.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AppleDisk

public AppleDisk(java.io.File diskFile)
Method Detail

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()