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 int
computeLength
(RecordDefinition recordDefinition, long position) private long
offset
(RecordDefinition.Field field, RecordDefinition recordDefinition, long position) private long
position
(RecordDefinition.Field field, RecordDefinition recordDefinition, long position) read
(RecordDefinition recordDefinition, long position) private ByteBuffer
readField
(RecordDefinition.Field field, RecordDefinition recordDefinition, long position) private long
size
(RecordDefinition.Field f, RecordDefinition recordDefinition, long position) toString()
private int
uint16
(RecordDefinition.Field field, RecordDefinition recordDefinition, long position) com.google.common.primitives.UnsignedInteger
uint32
(RecordDefinition.Field field, RecordDefinition recordDefinition, long position) private com.google.common.primitives.UnsignedLong
uint64
(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
-