Class StandardPacketOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.mariadb.jdbc.internal.io.output.AbstractPacketOutputStream
org.mariadb.jdbc.internal.io.output.StandardPacketOutputStream
- All Implemented Interfaces:
Closeable, Flushable, AutoCloseable, PacketOutputStream
-
Field Summary
Fields inherited from class AbstractPacketOutputStream
buf, cmdLength, maxAllowedPacket, maxQuerySizeToLog, permitTrace, pos, seqNo, serverThreadLog, threadId, traceCacheFields inherited from class FilterOutputStream
out -
Constructor Summary
ConstructorsConstructorDescriptionStandardPacketOutputStream(OutputStream out, Options options, long threadId) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidflushBuffer(boolean commandEnd) Flush the internal buffer.intintvoidsetMaxAllowedPacket(int maxAllowedPacket) voidstartPacket(int seqNo) voidWrite an empty com.Methods inherited from class AbstractPacketOutputStream
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, writeShortMethods inherited from class FilterOutputStream
closeMethods inherited from class OutputStream
nullOutputStreamMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PacketOutputStream
close
-
Constructor Details
-
StandardPacketOutputStream
-
-
Method Details
-
getMaxPacketLength
public int getMaxPacketLength()- Specified by:
getMaxPacketLengthin classAbstractPacketOutputStream
-
startPacket
public void startPacket(int seqNo) - Specified by:
startPacketin interfacePacketOutputStream- Specified by:
startPacketin classAbstractPacketOutputStream
-
setMaxAllowedPacket
public void setMaxAllowedPacket(int maxAllowedPacket) - Specified by:
setMaxAllowedPacketin interfacePacketOutputStream- Specified by:
setMaxAllowedPacketin classAbstractPacketOutputStream
-
initialPacketPos
public int initialPacketPos() -
flushBuffer
Flush the internal buffer.- Specified by:
flushBufferin classAbstractPacketOutputStream- Parameters:
commandEnd- command end- Throws:
IOException- id connection error occur.
-
writeEmptyPacket
Write an empty com.- Specified by:
writeEmptyPacketin interfacePacketOutputStream- Specified by:
writeEmptyPacketin classAbstractPacketOutputStream- Throws:
IOException- if socket error occur.
-