Package org.eclipse.cbi.common.util
Class SeekableByteChannelRecordReader
java.lang.Object
org.eclipse.cbi.common.util.SeekableByteChannelRecordReader
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate intcomputeLength(RecordDefinition recordDefinition, long position) private longoffset(RecordDefinition.Field field, RecordDefinition recordDefinition, long position) private longposition(RecordDefinition.Field field, RecordDefinition recordDefinition, long position) read(RecordDefinition recordDefinition, long position) private ByteBufferreadField(RecordDefinition.Field field, RecordDefinition recordDefinition, long position) private longsize(RecordDefinition.Field f, RecordDefinition recordDefinition, long position) toString()private intuint16(RecordDefinition.Field field, RecordDefinition recordDefinition, long position) com.google.common.primitives.UnsignedIntegeruint32(RecordDefinition.Field field, RecordDefinition recordDefinition, long position) private com.google.common.primitives.UnsignedLonguint64(RecordDefinition.Field field, RecordDefinition recordDefinition, long position)
-
Field Details
-
channel
-
-
Constructor Details
-
SeekableByteChannelRecordReader
-
-
Method Details
-
read
- Throws:
IOException
-
uint16
private int uint16(RecordDefinition.Field field, RecordDefinition recordDefinition, long position) throws IOException - Throws:
IOException
-
uint32
public com.google.common.primitives.UnsignedInteger uint32(RecordDefinition.Field field, RecordDefinition recordDefinition, long position) throws IOException - Throws:
IOException
-
uint64
private com.google.common.primitives.UnsignedLong uint64(RecordDefinition.Field field, RecordDefinition recordDefinition, long position) throws IOException - Throws:
IOException
-
readField
private ByteBuffer readField(RecordDefinition.Field field, RecordDefinition recordDefinition, long position) throws IOException - Throws:
IOException
-
position
private long position(RecordDefinition.Field field, RecordDefinition recordDefinition, long position) throws IOException - Throws:
IOException
-
offset
private long offset(RecordDefinition.Field field, RecordDefinition recordDefinition, long position) throws IOException - Throws:
IOException
-
size
private long size(RecordDefinition.Field f, RecordDefinition recordDefinition, long position) throws IOException - Throws:
IOException
-
computeLength
- Throws:
IOException
-
toString
-