public class StandardPacketOutputStream extends AbstractPacketOutputStream
buf, cmdLength, maxAllowedPacket, maxQuerySizeToLog, permitTrace, pos, seqNo, serverThreadLog, traceCacheout| Constructor and Description |
|---|
StandardPacketOutputStream(OutputStream out,
Options options) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
flushBuffer(boolean commandEnd)
Flush the internal buffer.
|
int |
getMaxPacketLength() |
int |
initialPacketPos() |
void |
setMaxAllowedPacket(int maxAllowedPacket) |
void |
startPacket(int seqNo) |
void |
writeEmptyPacket()
Write an empty com.
|
bufferIsDataAfterMark, checkMaxAllowedLength, checkRemainingSize, exceedMaxLength, flush, flushBufferStopAtMark, getMaxAllowedPacket, getOutputStream, isMarked, mark, permitTrace, resetMark, setServerThreadId, setTraceCache, write, write, write, write, write, write, write, write, write, writeBytes, writeBytesEscaped, writeEmptyPacket, writeFieldLength, writeInt, writeLong, writeShortcloseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic StandardPacketOutputStream(OutputStream out, Options options)
public int getMaxPacketLength()
getMaxPacketLength in class AbstractPacketOutputStreampublic void startPacket(int seqNo)
startPacket in interface PacketOutputStreamstartPacket in class AbstractPacketOutputStreampublic void setMaxAllowedPacket(int maxAllowedPacket)
setMaxAllowedPacket in interface PacketOutputStreamsetMaxAllowedPacket in class AbstractPacketOutputStreampublic int initialPacketPos()
protected void flushBuffer(boolean commandEnd)
throws IOException
flushBuffer in class AbstractPacketOutputStreamcommandEnd - command endIOException - id connection error occur.public void writeEmptyPacket()
throws IOException
writeEmptyPacket in interface PacketOutputStreamwriteEmptyPacket in class AbstractPacketOutputStreamIOException - if socket error occur.Copyright © 2019 mariadb.org. All rights reserved.