public class StandardPacketOutputStream extends AbstractPacketOutputStream
buf, cmdLength, maxAllowedPacket, maxQuerySizeToLog, permitTrace, pos, seqNo, serverThreadLog, traceCache
out
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, writeShort
close
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public StandardPacketOutputStream(OutputStream out, Options options)
public int getMaxPacketLength()
getMaxPacketLength
in class AbstractPacketOutputStream
public void startPacket(int seqNo)
startPacket
in interface PacketOutputStream
startPacket
in class AbstractPacketOutputStream
public void setMaxAllowedPacket(int maxAllowedPacket)
setMaxAllowedPacket
in interface PacketOutputStream
setMaxAllowedPacket
in class AbstractPacketOutputStream
public int initialPacketPos()
protected void flushBuffer(boolean commandEnd) throws IOException
flushBuffer
in class AbstractPacketOutputStream
commandEnd
- command endIOException
- id connection error occur.public void writeEmptyPacket() throws IOException
writeEmptyPacket
in interface PacketOutputStream
writeEmptyPacket
in class AbstractPacketOutputStream
IOException
- if socket error occur.Copyright © 2019 mariadb.org. All rights reserved.