public class DecompressInputStream extends InputStream implements MariaDbInputStream
| Constructor and Description |
|---|
DecompressInputStream(InputStream baseStream)
Constructor of inputStream when compression is used.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLastPacketSeq() |
int |
read() |
int |
read(byte[] bytes) |
int |
read(byte[] bytes,
int off,
int len) |
int |
readHeader()
Permit to return mysql packet header length.
|
void |
setLastPacketSeq(int lastPacketSeq) |
available, close, mark, markSupported, reset, skipclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitavailable, close, mark, markSupported, reset, skippublic DecompressInputStream(InputStream baseStream)
baseStream - socket inputStream.public int readHeader()
throws IOException
readHeader in interface MariaDbInputStreamIOException - if socket error happenpublic int read(byte[] bytes,
int off,
int len)
throws IOException
read in interface MariaDbInputStreamread in class InputStreamIOExceptionpublic int read(byte[] bytes)
throws IOException
read in interface MariaDbInputStreamread in class InputStreamIOExceptionpublic int read()
throws IOException
read in interface MariaDbInputStreamread in class InputStreamIOExceptionpublic int getLastPacketSeq()
getLastPacketSeq in interface MariaDbInputStreampublic void setLastPacketSeq(int lastPacketSeq)
setLastPacketSeq in interface MariaDbInputStreamCopyright © 2016. All rights reserved.