|
||||||||||
| 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.ReadUtil
public final class ReadUtil
. User: marcuse Date: Jan 16, 2009 Time: 8:27:38 PM
| Method Summary | |
|---|---|
static boolean |
eofIsNext(RawPacket rawPacket)
Checks whether the next packet is EOF. |
static boolean |
isErrorPacket(RawPacket rawPacket)
|
static int |
safeRead(java.io.InputStream inputStream,
byte[] buffer)
Read a number of bytes from the stream and store it in the buffer, and fix the problem with "incomplete" reads by doing another read if we don't have all of the data yet. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int safeRead(java.io.InputStream inputStream,
byte[] buffer)
throws java.io.IOException
inputStream - the input stream to read frombuffer - where to store the data
java.io.IOException - if an error occurs while reading the streampublic static boolean eofIsNext(RawPacket rawPacket)
rawPacket - the raw packet
public static boolean isErrorPacket(RawPacket rawPacket)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||