Top Fields Constructors Methods
com.mysql.cj.protocol.x

public Class XMessageHeader

extends Object
implements MessageHeader
Class Inheritance
All Implemented Interfaces
com.mysql.cj.protocol.MessageHeader
Imports
java.nio.ByteBuffer, .ByteOrder, com.mysql.cj.protocol.MessageHeader

Field Summary

Modifier and TypeField and Description
public static final int
private ByteBuffer
public static final int
public static final int
private int
messageSize

Size of the message that will be read.

private int
messageType

Type tag of the message to read (indicates parser to use).

Constructor Summary

AccessConstructor and Description
public
public
XMessageHeader(byte[] buf)

Method Summary

Modifier and TypeMethod and Description
public ByteBuffer
public byte
public int
public int
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

HEADER_LENGTHback to summary
public static final int HEADER_LENGTH
headerBufback to summary
private ByteBuffer headerBuf
MESSAGE_SIZE_LENGTHback to summary
public static final int MESSAGE_SIZE_LENGTH
MESSAGE_TYPE_LENGTHback to summary
public static final int MESSAGE_TYPE_LENGTH
messageSizeback to summary
private int messageSize

Size of the message that will be read.

messageTypeback to summary
private int messageType

Type tag of the message to read (indicates parser to use).

Constructor Detail

XMessageHeaderback to summary
public XMessageHeader()
XMessageHeaderback to summary
public XMessageHeader(byte[] buf)

Method Detail

getBufferback to summary
public ByteBuffer getBuffer()

Implements com.mysql.cj.protocol.MessageHeader.getBuffer.

Annotations
@Override
getMessageSequenceback to summary
public byte getMessageSequence()

Implements com.mysql.cj.protocol.MessageHeader.getMessageSequence.

Annotations
@Override
getMessageSizeback to summary
public int getMessageSize()

Implements com.mysql.cj.protocol.MessageHeader.getMessageSize.

Annotations
@Override
getMessageTypeback to summary
public int getMessageType()
parseBufferback to summary
private void parseBuffer()