com.zipxap.vfs
Class SectorType

java.lang.Object
  extended by com.zipxap.vfs.SectorType

public class SectorType
extends java.lang.Object

This class is intended to be used much like an enum. You cannot instantiate new instances of this class.

MilestoneWhoDate, Time
Initial VersionK PenroseJune 2009

** Note that this table is not intended as an exhaustive list of subtle changes. It is intended to list changes that break the compatibility of older code, or major enhancements/rewrites


Field Summary
static SectorType GIANT
           
static SectorType GIANT_EMPTY
           
static int GIANT_SECTOR_SIZE
           
static SectorType HEADER
           
static SectorType HEADER_EMPTY
           
static int HEADER_SECTOR_SIZE
           
static SectorType JUMBO
           
static SectorType JUMBO_EMPTY
           
static int JUMBO_SECTOR_SIZE
           
static SectorType LARGE
           
static SectorType LARGE_EMPTY
           
static int LARGE_SECTOR_SIZE
           
static SectorType MEDIUM
           
static SectorType MEDIUM_EMPTY
           
static int MEDIUM_SECTOR_SIZE
           
static SectorType SMALL
           
static SectorType SMALL_EMPTY
           
static int SMALL_SECTOR_SIZE
           
 
Method Summary
 SectorType getMatchingEmptySectorType()
           
 SectorType getMatchingNonEmptySectorType()
           
 int getNextSectorLocationOffset()
           
 int getSectorSize()
           
 byte getSectorTypeCode()
           
static SectorType getSectorTypeForCode(byte code)
          Retrieve the SectorType associated with the specified code.
 java.lang.String getSectorTypeName()
           
 boolean isEmpty()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HEADER_SECTOR_SIZE

public static final int HEADER_SECTOR_SIZE
See Also:
Constant Field Values

SMALL_SECTOR_SIZE

public static final int SMALL_SECTOR_SIZE
See Also:
Constant Field Values

MEDIUM_SECTOR_SIZE

public static final int MEDIUM_SECTOR_SIZE
See Also:
Constant Field Values

LARGE_SECTOR_SIZE

public static final int LARGE_SECTOR_SIZE
See Also:
Constant Field Values

GIANT_SECTOR_SIZE

public static final int GIANT_SECTOR_SIZE
See Also:
Constant Field Values

JUMBO_SECTOR_SIZE

public static final int JUMBO_SECTOR_SIZE
See Also:
Constant Field Values

HEADER

public static final SectorType HEADER

HEADER_EMPTY

public static final SectorType HEADER_EMPTY

SMALL

public static final SectorType SMALL

SMALL_EMPTY

public static final SectorType SMALL_EMPTY

MEDIUM

public static final SectorType MEDIUM

MEDIUM_EMPTY

public static final SectorType MEDIUM_EMPTY

LARGE

public static final SectorType LARGE

LARGE_EMPTY

public static final SectorType LARGE_EMPTY

GIANT

public static final SectorType GIANT

GIANT_EMPTY

public static final SectorType GIANT_EMPTY

JUMBO

public static final SectorType JUMBO

JUMBO_EMPTY

public static final SectorType JUMBO_EMPTY
Method Detail

getSectorTypeCode

public byte getSectorTypeCode()
Returns:
the _sectorTypeCode

getSectorTypeName

public java.lang.String getSectorTypeName()
Returns:
the _sectorTypeName

getSectorSize

public int getSectorSize()
Returns:
the _sectorSize

getNextSectorLocationOffset

public int getNextSectorLocationOffset()

isEmpty

public boolean isEmpty()

getMatchingNonEmptySectorType

public SectorType getMatchingNonEmptySectorType()

getMatchingEmptySectorType

public SectorType getMatchingEmptySectorType()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getSectorTypeForCode

public static SectorType getSectorTypeForCode(byte code)
Retrieve the SectorType associated with the specified code.

Parameters:
code -
Returns:
the SectorType associated with the specified code
Throws:
UCException - if the specified code does not correspond to a valid SectorType.