org.mbari.siam.devices.nortek
Class FileAllocationTable

java.lang.Object
  extended by org.mbari.siam.devices.nortek.FileAllocationTable

public class FileAllocationTable
extends java.lang.Object

Represents the instrument's file allocation table.


Field Summary
static int NROWS
           
static int ROW_LENGTH
           
static int TABLE_BYTES
           
 
Constructor Summary
FileAllocationTable(byte[] bytes, int totalRecorderBytes)
          Create file allocation table, and set total recorder size (bytes)
 
Method Summary
protected  boolean empty(int row)
          Return true if specified row in table is occupied, else return false.
 int nFiles()
          Return current number of non-empty files
 java.lang.String toString()
          Return string representation of FAT
 long usedBytes()
          Return number of bytes used by all files
 long usedBytes(int fileNo)
          Return number of bytes used by specified file; fileNo must be in range 0 through 31.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TABLE_BYTES

public static final int TABLE_BYTES
See Also:
Constant Field Values

NROWS

public static final int NROWS
See Also:
Constant Field Values

ROW_LENGTH

public static final int ROW_LENGTH
See Also:
Constant Field Values
Constructor Detail

FileAllocationTable

public FileAllocationTable(byte[] bytes,
                           int totalRecorderBytes)
Create file allocation table, and set total recorder size (bytes)

Method Detail

nFiles

public int nFiles()
Return current number of non-empty files


usedBytes

public long usedBytes()
Return number of bytes used by all files


usedBytes

public long usedBytes(int fileNo)
Return number of bytes used by specified file; fileNo must be in range 0 through 31.


empty

protected boolean empty(int row)
Return true if specified row in table is occupied, else return false.


toString

public java.lang.String toString()
Return string representation of FAT

Overrides:
toString in class java.lang.Object


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.