public class EventQueueDataReader extends Object implements EventDataReader
| Constructor and Description |
|---|
EventQueueDataReader() |
| Modifier and Type | Method and Description |
|---|---|
int |
available()
Returns the number of bytes that can be read (or skipped over).
|
int |
read(byte[] b,
int off,
int len)
Reads
len bytes of data and store them into the buffer b. |
boolean |
readBoolean()
Reads the next boolean of data.
|
byte |
readByte()
Reads the next byte of data.
|
char |
readChar()
Reads the next char of data.
|
double |
readDouble()
Reads the next double of data.
|
float |
readFloat()
Reads the next float of data.
|
int |
readFully(byte[] b)
Reads all the bytes of data and store them into the buffer
b. |
int |
readInt()
Reads the next integer of data.
|
long |
readLong()
Reads the next long of data.
|
short |
readShort()
Reads the next short of data.
|
int |
readUnsignedByte()
Reads the next unsigned byte of data.
|
int |
readUnsignedShort()
Reads the next unsigned short of data.
|
int |
skipBytes(int n)
Skips over and discard
n bytes of data. |
public int available()
EventDataReaderavailable in interface EventDataReaderpublic int read(byte[] b,
int off,
int len)
throws IOException
EventDataReaderlen bytes of data and store them into the buffer b.read in interface EventDataReaderb - the buffer into which the data is read.off - the start offset in the buffer b at which the data is
written.len - the number of bytes to read.IOException - if there are not enough bytes remaining in the data of
the extended event or if the buffer is too small to store
the event data.public boolean readBoolean()
throws IOException
EventDataReaderreadBoolean in interface EventDataReaderIOException - if there is no boolean remaining in the data of the
extended event.public byte readByte()
throws IOException
EventDataReaderreadByte in interface EventDataReaderIOException - if there is no byte remaining in the data of the extended
event.public char readChar()
throws IOException
EventDataReaderreadChar in interface EventDataReaderIOException - if there is no char remaining in the data of the extended
event.public double readDouble()
throws IOException
EventDataReaderreadDouble in interface EventDataReaderIOException - if there is no double remaining in the data of the
extended event.public float readFloat()
throws IOException
EventDataReaderreadFloat in interface EventDataReaderIOException - if there is no float remaining in the data of the
extended event.public int readFully(byte[] b)
throws IOException
EventDataReaderb.readFully in interface EventDataReaderb - the buffer into which the data is read.IOException - if there is no byte remaining in the data of the extended
event or if the buffer is too small to store the event
data.public int readInt()
throws IOException
EventDataReaderreadInt in interface EventDataReaderIOException - if there is no integer remaining in the data of the
extended event.public long readLong()
throws IOException
EventDataReaderreadLong in interface EventDataReaderIOException - if there is no long remaining in the data of the extended
event.public short readShort()
throws IOException
EventDataReaderreadShort in interface EventDataReaderIOException - if there is no short remaining in the data of the
extended event.public int readUnsignedByte()
throws IOException
EventDataReaderreadUnsignedByte in interface EventDataReaderIOException - if there is no unsigned byte remaining in the data of the
extended event.public int readUnsignedShort()
throws IOException
EventDataReaderreadUnsignedShort in interface EventDataReaderIOException - if there is no unsigned short remaining in the data of
the extended event.public int skipBytes(int n)
EventDataReadern bytes of data.skipBytes in interface EventDataReadern - the number of bytes to skip.