public class MariaDbBufferedInputStream extends BufferedInputStream implements MariaDbInputStream
in| Constructor and Description |
|---|
MariaDbBufferedInputStream(InputStream in,
int size) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLastPacketSeq() |
int |
readHeader()
Permit to return mysql packet header length super fast if already in cache.
|
void |
setLastPacketSeq(int lastPacketSeq) |
available, close, mark, markSupported, read, read, reset, skipreadclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitavailable, close, mark, markSupported, read, read, read, reset, skippublic MariaDbBufferedInputStream(InputStream in, int size)
public int readHeader()
throws IOException
readHeader in interface MariaDbInputStreamIOException - id stream throw errorpublic int getLastPacketSeq()
getLastPacketSeq in interface MariaDbInputStreampublic void setLastPacketSeq(int lastPacketSeq)
setLastPacketSeq in interface MariaDbInputStreamCopyright © 2017. All rights reserved.