Interface PacketOutputStream
- All Known Implementing Classes:
AbstractPacketOutputStream,CompressPacketOutputStream,StandardPacketOutputStream
public interface PacketOutputStream
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidcheckMaxAllowedLength(int length) booleancheckRemainingSize(int len) voidclose()booleanvoidflush()voidintintbooleanisMarked()voidmark()voidpermitTrace(boolean permitTrace) byte[]voidsetMaxAllowedPacket(int maxAllowedPacket) voidsetServerThreadId(long serverThreadId, Boolean isMaster) voidsetTraceCache(LruTraceCache traceCache) voidstartPacket(int seqNo) voidwrite(byte[] arr) voidwrite(byte[] arr, int off, int len) voidwrite(int arr) voidwrite(InputStream is, boolean escape, boolean noBackslashEscapes) voidwrite(InputStream is, long length, boolean escape, boolean noBackslashEscapes) voidvoidvoidvoidvoidwriteBytes(byte value, int len) voidwriteBytesEscaped(byte[] bytes, int len, boolean noBackslashEscapes) voidvoidwriteEmptyPacket(int seqNo) voidwriteFieldLength(long length) voidwriteInt(int value) voidwriteLong(long value) voidwriteShort(short value)
-
Method Details
-
startPacket
void startPacket(int seqNo) -
writeEmptyPacket
- Throws:
IOException
-
writeEmptyPacket
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
void write(InputStream is, long length, boolean escape, boolean noBackslashEscapes) throws IOException - Throws:
IOException
-
write
- Throws:
IOException
-
write
void write(Reader reader, long length, boolean escape, boolean noBackslashEscapes) throws IOException - Throws:
IOException
-
writeBytesEscaped
- Throws:
IOException
-
flush
- Throws:
IOException
-
close
- Throws:
IOException
-
checkRemainingSize
boolean checkRemainingSize(int len) -
exceedMaxLength
boolean exceedMaxLength() -
getOutputStream
OutputStream getOutputStream() -
writeShort
- Throws:
IOException
-
writeInt
- Throws:
IOException
-
writeLong
- Throws:
IOException
-
writeBytes
- Throws:
IOException
-
writeFieldLength
- Throws:
IOException
-
getMaxAllowedPacket
int getMaxAllowedPacket() -
setMaxAllowedPacket
void setMaxAllowedPacket(int maxAllowedPacket) -
permitTrace
void permitTrace(boolean permitTrace) -
setServerThreadId
-
setTraceCache
-
mark
- Throws:
MaxAllowedPacketException
-
isMarked
boolean isMarked() -
flushBufferStopAtMark
- Throws:
IOException
-
bufferIsDataAfterMark
boolean bufferIsDataAfterMark() -
resetMark
byte[] resetMark() -
initialPacketPos
int initialPacketPos() -
checkMaxAllowedLength
- Throws:
MaxAllowedPacketException
-