Class CaptureData.SensorFile

java.lang.Object
  |
  +--java.io.RandomAccessFile
        |
        +--CaptureData.SensorFile
All Implemented Interfaces:
java.io.DataInput, java.io.DataOutput
Enclosing class:
CaptureData

class CaptureData.SensorFile
extends java.io.RandomAccessFile

An inner class for writing the raw bird records to a binary file. Currently the quaternions are unscaled values.

See Also:
for the inherited methods.

Fields inherited from class java.io.RandomAccessFile
fd
 
Constructor Summary
(package private) CaptureData.SensorFile(java.io.File f, java.lang.String mode)
          Constructor is the same as for a RandomAccessFile.
 
Method Summary
(package private)  void writeAddress(short addr)
          Write out a bird address as a two byte short value
(package private)  void writeQuat(short[] quat)
          Write out a quaternion as a series of two byte shorts.
 
Methods inherited from class java.io.RandomAccessFile
, close, getFD, getFilePointer, initIDs, length, open, read, read, read, readBoolean, readByte, readBytes, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, seek, setLength, skipBytes, write, write, write, writeBoolean, writeByte, writeBytes, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

CaptureData.SensorFile

CaptureData.SensorFile(java.io.File f,
                       java.lang.String mode)
                 throws java.io.FileNotFoundException
Constructor is the same as for a RandomAccessFile.
Parameters:
f - a file descriptor
mode - the mode with which to open the file
Throws:
java.io.FileNotFoundException -  
See Also:
RandomAccessFile
Method Detail

writeQuat

void writeQuat(short[] quat)
Write out a quaternion as a series of two byte shorts.
Parameters:
quat - an array of shorts representing the quat

writeAddress

void writeAddress(short addr)
Write out a bird address as a two byte short value