All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class uk.co.demon.seasip.libdsk.FormatType

java.lang.Object
   |
   +----uk.co.demon.seasip.libdsk.FormatType

public class FormatType
extends Object
This class contains all the format types that LibDsk supports.


Variable Index

 o FMT_1200F
As FMT_720F, but with 15 sectors per track.
 o FMT_1440F
As FMT_720F, but with 18 sectors per track.
 o FMT_1440K
18 sectors, 2 sides, 80 tracks, 512 byte sectors.
 o FMT_160K
8 sectors, 1 side, 40 tracks, 512 byte sectors.
 o FMT_180K
9 sectors, 1 side, 40 tracks, 512 byte sectors.
 o FMT_320K
8 sectors, 2 sides, 40 tracks, 512 byte sectors.
 o FMT_360K
9 sectors, 2 sides, 40 tracks, 512 byte sectors.
 o FMT_720F
As FMT_720K, but the sides are out-and-back rather than alternating.
 o FMT_720K
9 sectors, 2 sides, 80 tracks, 512 byte sectors.
 o FMT_800K
10 sectors, 2 sides, 80 tracks, 512 byte sectors.
 o FMT_ACORN160
16 sectors, 1 side, 40 tracks, 256 byte sectors.
 o FMT_ACORN1600
10 sectors, 2 sides, 80 tracks, 1024 byte sectors.
 o FMT_ACORN320
16 sectors, 1 side, 80 tracks, 256 byte sectors.
 o FMT_ACORN640
16 sectors, 2 sides, 80 tracks, 256 byte sectors.
 o FMT_ACORN800
5 sectors, 2 sides, 80 tracks, 1024 byte sectors.
 o FMT_CPCDATA
CPC data 180K - as FMT_180K, but sectors start at 0xC1 not 0x01.
 o FMT_CPCSYS
CPC system 180K - as FMT_180K, but sectors start at 0x41 not 0x01.

Constructor Index

 o FormatType()

Method Index

 o stdFormat(int, Geometry, String[])
Initialise a Geometry object with a standard format.

Variables

 o FMT_180K
 public static final int FMT_180K
9 sectors, 1 side, 40 tracks, 512 byte sectors. This corresponds to the standard Spectrum +3 / PCW8256 format, as well as the PCDOS 180k format.

 o FMT_CPCSYS
 public static final int FMT_CPCSYS
CPC system 180K - as FMT_180K, but sectors start at 0x41 not 0x01.

 o FMT_CPCDATA
 public static final int FMT_CPCDATA
CPC data 180K - as FMT_180K, but sectors start at 0xC1 not 0x01.

 o FMT_720K
 public static final int FMT_720K
9 sectors, 2 sides, 80 tracks, 512 byte sectors. This corresponds to the PCW 720k format and the PCDOS 720k format.

 o FMT_1440K
 public static final int FMT_1440K
18 sectors, 2 sides, 80 tracks, 512 byte sectors. This corresponds to the PCDOS / PCW16 1440k formaat.

 o FMT_160K
 public static final int FMT_160K
8 sectors, 1 side, 40 tracks, 512 byte sectors. This corresponds to the PCDOS 1.0 160k format.

 o FMT_320K
 public static final int FMT_320K
8 sectors, 2 sides, 40 tracks, 512 byte sectors. This corresponds to the PCDOS 320k format.

 o FMT_360K
 public static final int FMT_360K
9 sectors, 2 sides, 40 tracks, 512 byte sectors. This corresponds to the PCDOS 160k format.

 o FMT_720F
 public static final int FMT_720F
As FMT_720K, but the sides are out-and-back rather than alternating. This format is used by 144FEAT for its CP/M-86 720k format.

 o FMT_1200F
 public static final int FMT_1200F
As FMT_720F, but with 15 sectors per track. This format is used by 144FEAT for its CP/M-86 1200k format.

 o FMT_1440F
 public static final int FMT_1440F
As FMT_720F, but with 18 sectors per track. This format is used by 144FEAT for its CP/M-86 1440k format.

 o FMT_ACORN160
 public static final int FMT_ACORN160
16 sectors, 1 side, 40 tracks, 256 byte sectors. First sector number is 0. This corresponds to the ADFS 'S' format.

 o FMT_ACORN320
 public static final int FMT_ACORN320
16 sectors, 1 side, 80 tracks, 256 byte sectors. First sector number is 0. This corresponds to the ADFS 'M' format.

 o FMT_ACORN640
 public static final int FMT_ACORN640
16 sectors, 2 sides, 80 tracks, 256 byte sectors. First sector number is 0. This corresponds to the ADFS 'L' format.

 o FMT_ACORN800
 public static final int FMT_ACORN800
5 sectors, 2 sides, 80 tracks, 1024 byte sectors. First sector number is 0. This corresponds to the ADFS 'D' and 'E' formats.

 o FMT_ACORN1600
 public static final int FMT_ACORN1600
10 sectors, 2 sides, 80 tracks, 1024 byte sectors. First sector number is 0. This corresponds to the ADFS 'F' format.

 o FMT_800K
 public static final int FMT_800K
10 sectors, 2 sides, 80 tracks, 512 byte sectors. First sector number is 0. This corresponds to the PCW XCF2DD format.

Constructors

 o FormatType
 public FormatType()

Methods

 o stdFormat
 public static native void stdFormat(int formatId,
                                     Geometry g,
                                     String namedesc[]) throws DskException
Initialise a Geometry object with a standard format.

Parameters:
formatId - One of the format IDs provided by this class.
g - The Geometry object to initialise. Can be null.
namedesc - An array of 2 strings, which will be set to the name and description of the format. Can be null.
Throws: DskException
If the format ID is unrecognised.

All Packages  Class Hierarchy  This Package  Previous  Next  Index