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, skip
read
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
available, close, mark, markSupported, read, read, read, reset, skip
public MariaDbBufferedInputStream(InputStream in, int size)
public int readHeader() throws IOException
readHeader
in interface MariaDbInputStream
IOException
- id stream throw errorpublic int getLastPacketSeq()
getLastPacketSeq
in interface MariaDbInputStream
public void setLastPacketSeq(int lastPacketSeq)
setLastPacketSeq
in interface MariaDbInputStream
Copyright © 2017. All rights reserved.