Interface PacketOutputStream
- All Known Implementing Classes:
AbstractPacketOutputStream
,CompressPacketOutputStream
,StandardPacketOutputStream
public interface PacketOutputStream
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
checkMaxAllowedLength
(int length) boolean
checkRemainingSize
(int len) void
close()
boolean
void
flush()
void
int
int
boolean
isMarked()
void
mark()
void
permitTrace
(boolean permitTrace) byte[]
void
setMaxAllowedPacket
(int maxAllowedPacket) void
setServerThreadId
(long serverThreadId, Boolean isMaster) void
setTraceCache
(LruTraceCache traceCache) void
startPacket
(int seqNo) void
write
(byte[] arr) void
write
(byte[] arr, int off, int len) void
write
(int arr) void
write
(InputStream is, boolean escape, boolean noBackslashEscapes) void
write
(InputStream is, long length, boolean escape, boolean noBackslashEscapes) void
void
void
void
void
writeBytes
(byte value, int len) void
writeBytesEscaped
(byte[] bytes, int len, boolean noBackslashEscapes) void
void
writeEmptyPacket
(int seqNo) void
writeFieldLength
(long length) void
writeInt
(int value) void
writeLong
(long value) void
writeShort
(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
-