|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drizzle.jdbc.internal.common.packet.buffer.Reader
public class Reader
. User: marcuse Date: Jan 16, 2009 Time: 8:27:38 PM
| Constructor Summary | |
|---|---|
Reader(RawPacket rawPacket)
|
|
| Method Summary | |
|---|---|
void |
appendPacket(RawPacket rawPacket)
|
byte |
getByteAt(int i)
|
long |
getLengthEncodedBinary()
|
byte[] |
getLengthEncodedBytes()
|
byte[] |
getLengthEncodedBytesWithLength(long length)
|
java.lang.String |
getLengthEncodedString()
|
byte |
getPacketSeq()
|
int |
getRemainingSize()
|
long |
getSilentLengthEncodedBinary()
|
int |
read24bitword()
|
byte |
readByte()
reads a byte from the buffer |
int |
readInt()
read a int (4 bytes) from the buffer; |
long |
readLong()
read a long (8 bytes) from the buffer; |
byte[] |
readRawBytes(int numberOfBytes)
|
short |
readShort()
read a short (2 bytes) from the buffer; |
java.lang.String |
readString(java.lang.String charset)
Reads a string from the buffer, looks for a 0 to end the string |
void |
skipByte()
|
long |
skipBytes(int bytesToSkip)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Reader(RawPacket rawPacket)
| Method Detail |
|---|
public java.lang.String readString(java.lang.String charset)
throws java.io.IOException
charset - the charset to use, for example ASCII
java.io.IOException - if it is not possible to create the string from the buffer
public short readShort()
throws java.io.IOException
java.io.IOException - if there are not 2 bytes left in the buffer
public int readInt()
throws java.io.IOException
java.io.IOException - if there are not 4 bytes left in the buffer
public long readLong()
throws java.io.IOException
java.io.IOException - if there are not 8 bytes left in the buffer
public byte readByte()
throws java.io.IOException
java.io.IOException - if bufferPointer exceeds the length of the buffer
public byte[] readRawBytes(int numberOfBytes)
throws java.io.IOException
java.io.IOException
public void skipByte()
throws java.io.IOException
java.io.IOException
public long skipBytes(int bytesToSkip)
throws java.io.IOException
java.io.IOException
public int read24bitword()
throws java.io.IOException
java.io.IOException
public long getLengthEncodedBinary()
throws java.io.IOException
java.io.IOException
public java.lang.String getLengthEncodedString()
throws java.io.IOException
java.io.IOException
public byte[] getLengthEncodedBytes()
throws java.io.IOException
java.io.IOExceptionpublic byte[] getLengthEncodedBytesWithLength(long length)
public byte getByteAt(int i)
throws java.io.IOException
java.io.IOExceptionpublic byte getPacketSeq()
public int getRemainingSize()
public void appendPacket(RawPacket rawPacket)
public long getSilentLengthEncodedBinary()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||