|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.core.DeviceLogData
public class DeviceLogData
This class implements the serialized class storage and retrieval functions
needed by the DeviceLog class.
DeviceLog| Field Summary | |
|---|---|
protected long |
_currentDataFileExtent
|
protected java.io.RandomAccessFile |
_dataFile
|
protected long |
_deviceId
|
protected int |
_segment
|
| Constructor Summary | |
|---|---|
protected |
DeviceLogData(long deviceId,
int segmentNumber,
java.lang.String directory)
default constructor |
protected |
DeviceLogData(long deviceId,
int segmentNumber,
java.lang.String suffix,
java.lang.String directory)
|
| Method Summary | |
|---|---|
protected void |
appendLogData(byte[] serializedData,
DeviceLogIndex.Entry indexEntry)
this routine appends a byte array of serialized class data to the data log according to the information contained in the DeviceLogIndex.Entry that is passed in |
protected void |
close()
Close the data file. |
protected java.io.FileInputStream |
getFileInputStream()
|
protected long |
getFilePointer()
|
protected long |
getLength()
|
protected int |
readBytes(byte[] buf,
int offset,
int bytes)
|
protected byte[] |
readLogData(DeviceLogIndex.Entry indexEntry)
this routine reads a byte array of serialized class data from the data log according to the information contained in the DeviceLogIndex.Entry that is passed in |
protected void |
seek(long pos)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.io.RandomAccessFile _dataFile
protected long _deviceId
protected int _segment
protected long _currentDataFileExtent
| Constructor Detail |
|---|
protected DeviceLogData(long deviceId,
int segmentNumber,
java.lang.String directory)
throws java.io.FileNotFoundException,
java.io.IOException
deviceId - ISI Device IDsegmentNumber - segment number
java.io.FileNotFoundException
java.io.IOException
protected DeviceLogData(long deviceId,
int segmentNumber,
java.lang.String suffix,
java.lang.String directory)
throws java.io.FileNotFoundException,
java.io.IOException
java.io.FileNotFoundException
java.io.IOException| Method Detail |
|---|
protected void appendLogData(byte[] serializedData,
DeviceLogIndex.Entry indexEntry)
DeviceLogIndex.Entry that is passed in
indexEntry - index entry used to write dataDeviceLogIndex.Entryprotected byte[] readLogData(DeviceLogIndex.Entry indexEntry)
DeviceLogIndex.Entry that is passed in
indexEntry - index entry used to read dataDeviceLogIndex.Entry
protected void close()
throws java.io.IOException
java.io.IOException
protected void seek(long pos)
throws java.io.IOException
java.io.IOException
protected long getLength()
throws java.io.IOException
java.io.IOException
protected long getFilePointer()
throws java.io.IOException
java.io.IOException
protected int readBytes(byte[] buf,
int offset,
int bytes)
throws java.io.IOException
java.io.IOException
protected java.io.FileInputStream getFileInputStream()
throws java.io.IOException
java.io.IOException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||