Package drivers.win
Class FAT
java.lang.Object
drivers.win.FAT
-
Constructor Summary
ConstructorsConstructorDescriptionFAT
(FileChannel ioChannel, boolean warnIfQXLDriveNotCompliant, String name, int number) Creates the object and reads the drive's header and FAT. -
Method Summary
-
Constructor Details
-
FAT
public FAT(FileChannel ioChannel, boolean warnIfQXLDriveNotCompliant, String name, int number) throws IOException, ArrayIndexOutOfBoundsException, IllegalStateException, DoNothingException, IncorrectFiletypeException Creates the object and reads the drive's header and FAT. The FAT starts at offset 0x40 of the very first sector. So the fist cluster (cluster 0) already is part of the FAT.- Parameters:
ioChannel
- channel to the underlying file on the native file system.warnIfQXLDriveNotCompliant
-name
- drive namenumber
- drive number (1 ... 8)- Throws:
IOException
- any IO exception reading the map / main dir.ArrayIndexOutOfBoundsException
- a wrong map cluster number was given.DoNothingException
- badly constructed qxl.win driveIllegalStateException
- if the raFile isn't null when this object is created (how could that be?????).IncorrectFiletypeException
-
-
Method Details
-
getByte
public short getByte(int index) -
getShort
public short getShort(int index) -
getInt
public int getInt(int index) -
putByte
public void putByte(int index, byte value) -
putShort
public void putShort(int index, short value) -
putInt
public void putInt(int index, int value) -
putBuffer
-
limit
public void limit() -
position
public void position(int index) -
getBuffer
-
getClustersize
public int getClustersize() -
getClusterChain
-