| java.lang.Object com.mysql.jdbc.Buffer
Buffer | class Buffer (Code) | | Buffer contains code to read and write packets from/to the MySQL server.
version: $Id: Buffer.java 6445 2007-06-07 15:25:59Z mmatthews $ author: Mark Matthews |
Method Summary | |
final void | clear() | final void | dump() | final String | dump(int numBytes) | final String | dumpClampedBytes(int numBytes) | final void | dumpHeader() | final void | dumpNBytes(int start, int nBytes) | final void | ensureCapacity(int additionalData) | public void | fastSkipLenByteArray() | public int | fastSkipLenString() | int | getBufLength() | final protected byte[] | getBufferSource() | public byte[] | getByteBuffer() Returns the array of bytes this Buffer is using to read from. | final byte[] | getBytes(int len) | byte[] | getBytes(int offset, int len) | int | getCapacity() | public ByteBuffer | getNioBuffer() | public int | getPosition() | final boolean | isLastDataPacket() | final long | newReadLength() | final byte | readByte() | final byte | readByte(int readAt) | final long | readFieldLength() | final int | readInt() | final int | readIntAsLong() | final byte[] | readLenByteArray(int offset) | final long | readLength() | final long | readLong() | final int | readLongInt() | final long | readLongLong() | final String | readString() | final String | readString(String encoding) | final int | readnBytes() | void | setBufLength(int bufLengthToSet) | public void | setByteBuffer(byte[] byteBufferToSet) Sets the array of bytes to use as a buffer to read from. | public void | setPosition(int positionToSet) | public void | setWasMultiPacket(boolean flag) | public String | toString() | public String | toSuperString() | public boolean | wasMultiPacket() | final void | writeByte(byte b) | final void | writeBytesNoNull(byte[] bytes) | final void | writeBytesNoNull(byte[] bytes, int offset, int length) | final void | writeDouble(double d) | final void | writeFieldLength(long length) | final void | writeFloat(float f) | final void | writeInt(int i) | final void | writeLenBytes(byte[] b) | final void | writeLenString(String s, String encoding, String serverEncoding, SingleByteCharsetConverter converter, boolean parserKnowsUnicode, ConnectionImpl conn) | final void | writeLong(long i) | final void | writeLongInt(int i) | final void | writeLongLong(long i) | final void | writeString(String s) | final void | writeString(String s, String encoding, ConnectionImpl conn) | final void | writeStringNoNull(String s) | final void | writeStringNoNull(String s, String encoding, String serverEncoding, boolean parserKnowsUnicode, ConnectionImpl conn) |
MAX_BYTES_TO_DUMP | final static int MAX_BYTES_TO_DUMP(Code) | | |
NO_LENGTH_LIMIT | final static int NO_LENGTH_LIMIT(Code) | | |
NULL_LENGTH | final static long NULL_LENGTH(Code) | | |
wasMultiPacket | protected boolean wasMultiPacket(Code) | | |
Buffer | Buffer(byte[] buf)(Code) | | |
dumpClampedBytes | final String dumpClampedBytes(int numBytes)(Code) | | |
dumpHeader | final void dumpHeader()(Code) | | |
dumpNBytes | final void dumpNBytes(int start, int nBytes)(Code) | | |
fastSkipLenByteArray | public void fastSkipLenByteArray()(Code) | | |
fastSkipLenString | public int fastSkipLenString()(Code) | | Skip over a length-encoded string
The position past the end of the string |
getBufLength | int getBufLength()(Code) | | |
getBufferSource | final protected byte[] getBufferSource()(Code) | | |
getByteBuffer | public byte[] getByteBuffer()(Code) | | Returns the array of bytes this Buffer is using to read from.
byte array being read from |
getBytes | final byte[] getBytes(int len)(Code) | | |
getBytes | byte[] getBytes(int offset, int len)(Code) | | |
getCapacity | int getCapacity()(Code) | | |
getNioBuffer | public ByteBuffer getNioBuffer()(Code) | | |
getPosition | public int getPosition()(Code) | | Returns the current position to write to/ read from
the current position to write to/ read from |
isLastDataPacket | final boolean isLastDataPacket()(Code) | | |
newReadLength | final long newReadLength()(Code) | | |
readByte | final byte readByte()(Code) | | |
readByte | final byte readByte(int readAt)(Code) | | |
readFieldLength | final long readFieldLength()(Code) | | |
readInt | final int readInt()(Code) | | |
readIntAsLong | final int readIntAsLong()(Code) | | |
readLenByteArray | final byte[] readLenByteArray(int offset)(Code) | | |
readLength | final long readLength()(Code) | | |
readLong | final long readLong()(Code) | | |
readLongInt | final int readLongInt()(Code) | | |
readLongLong | final long readLongLong()(Code) | | |
readnBytes | final int readnBytes()(Code) | | |
setBufLength | void setBufLength(int bufLengthToSet)(Code) | | |
setByteBuffer | public void setByteBuffer(byte[] byteBufferToSet)(Code) | | Sets the array of bytes to use as a buffer to read from.
Parameters: byteBuffer - the array of bytes to use as a buffer |
setPosition | public void setPosition(int positionToSet)(Code) | | Set the current position to write to/ read from
Parameters: position - the position (0-based index) |
setWasMultiPacket | public void setWasMultiPacket(boolean flag)(Code) | | Sets whether this packet was part of a multipacket
Parameters: flag - was this packet part of a multipacket? |
wasMultiPacket | public boolean wasMultiPacket()(Code) | | Was this packet part of a multipacket?
was this packet part of a multipacket? |
writeBytesNoNull | final void writeBytesNoNull(byte[] bytes, int offset, int length) throws SQLException(Code) | | |
|
|