Class Reply
java.lang.Object
org.apache.derby.client.net.Reply
- Direct Known Subclasses:
NetConnectionReply
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Agentprotected byte[]protected intprivate intprivate int[]private intprotected static final intprivate intprivate booleanprivate booleanprotected intprivate static final int(package private) static final int(package private) static final intprotected booleanprotected byte[]protected intprotected intprotected byte[]private static final intprotected NetAgentprivate intprotected intprivate intprotected intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidadjustCollectionAndDssLengths(int length) protected intadjustDdmLength(int ddmLength, int length) protected final voidadjustLengths(int length) private voidcompressBLayerData(int continueDssHeaderCount) private voiddecryptData(int gdsFormatter, int oldDssLength) (package private) final voiddoSyntaxrmSemantics(int syntaxErrorCode) protected final voidprivate intensureALayerDataInBuffer(int desiredDataSize) protected final voidensureBLayerDataInBuffer(int desiredDataSize) private voidensureSpaceInBufferForFill(int desiredSpace) private intfill(int minimumBytesNeeded) (package private) final ByteArrayOutputStreamgetData(ByteArrayOutputStream existingBuffer) (package private) final int(package private) final ByteArrayOutputStreamgetFastData(ByteArrayOutputStream existingBuffer) (package private) final int(package private) final void(package private) final voidmark()protected final voidmatchCodePoint(int expectedCodePoint) protected final voidparseLengthAndMatchCodePoint(int expectedCodePoint) protected final intprivate voidprotected final intpeekFastBytes(byte[] b, int offset, int length) protected final intprotected final booleanprotected final intprotected final intpeekTotalColumnCount(int tripletLength) protected final voidprivate intpopMark()protected final void(package private) final bytereadByte()(package private) final byte[](package private) final byte[]readBytes(int length) private voidprivate voidprivate void(package private) final byte(package private) final byte[]readFastBytes(int length) (package private) final int(package private) final voidreadFastIntArray(int[] array) (package private) final byte[](package private) final long(package private) final short(package private) final StringreadFastString(int length) (package private) final StringreadFastString(int length, Charset encoding) (package private) final int(package private) final int(package private) final intreadInt()private int(package private) final short(package private) final String(package private) final StringreadString(int length, Charset encoding) (package private) final int(package private) final int(package private) final int[]private voidshiftBuffer(byte[] destinationBuffer) (package private) final void(package private) final voidskipBytes(int length) (package private) final voidskipFastBytes(int length) private intskipSQLDHROW(int offset) protected final void
-
Field Details
-
agent_
-
netAgent_
-
DEFAULT_BUFFER_SIZE
protected static final int DEFAULT_BUFFER_SIZE- See Also:
-
buffer_
protected byte[] buffer_ -
pos_
protected int pos_ -
count_
protected int count_ -
topDdmCollectionStack_
private int topDdmCollectionStack_ -
MAX_MARKS_NESTING
private static final int MAX_MARKS_NESTING- See Also:
-
ddmCollectionLenStack_
private int[] ddmCollectionLenStack_ -
ddmScalarLen_
private int ddmScalarLen_ -
EMPTY_STACK
private static final int EMPTY_STACK- See Also:
-
ensuredLengthForDecryption_
protected boolean ensuredLengthForDecryption_ -
longBufferForDecryption_
protected byte[] longBufferForDecryption_ -
longPosForDecryption_
protected int longPosForDecryption_ -
longValueForDecryption_
protected byte[] longValueForDecryption_ -
longCountForDecryption_
protected int longCountForDecryption_ -
dssLength_
protected int dssLength_ -
dssIsContinued_
private boolean dssIsContinued_ -
dssIsChainedWithSameID_
private boolean dssIsChainedWithSameID_ -
dssCorrelationID_
private int dssCorrelationID_ -
peekedLength_
protected int peekedLength_ -
peekedCodePoint_
private int peekedCodePoint_ -
peekedNumOfExtendedLenBytes_
private int peekedNumOfExtendedLenBytes_ -
currentPos_
private int currentPos_ -
END_OF_COLLECTION
static final int END_OF_COLLECTION- See Also:
-
END_OF_SAME_ID_CHAIN
static final int END_OF_SAME_ID_CHAIN- See Also:
-
-
Constructor Details
-
Reply
Reply(NetAgent netAgent, int bufferSize)
-
-
Method Details
-
initialize
final void initialize() -
getDdmLength
final int getDdmLength() -
shiftBuffer
private void shiftBuffer(byte[] destinationBuffer) -
ensureSpaceInBufferForFill
private void ensureSpaceInBufferForFill(int desiredSpace) -
fill
- Throws:
DisconnectException
-
ensureALayerDataInBuffer
- Throws:
DisconnectException
-
ensureBLayerDataInBuffer
- Throws:
DisconnectException
-
compressBLayerData
- Throws:
DisconnectException
-
readDssHeader
- Throws:
DisconnectException
-
decryptData
- Throws:
DisconnectException
-
readUnsignedShort
- Throws:
DisconnectException
-
readShort
- Throws:
DisconnectException
-
readInt
- Throws:
DisconnectException
-
readUnsignedShortList
- Throws:
DisconnectException
-
readUnsignedByte
- Throws:
DisconnectException
-
readByte
- Throws:
DisconnectException
-
readString
- Throws:
DisconnectException
-
readString
- Throws:
DisconnectException
-
readBytes
- Throws:
DisconnectException
-
readBytes
- Throws:
DisconnectException
-
skipBytes
- Throws:
DisconnectException
-
skipBytes
- Throws:
DisconnectException
-
getData
final ByteArrayOutputStream getData(ByteArrayOutputStream existingBuffer) throws DisconnectException - Throws:
DisconnectException
-
readDSSContinuationHeader
- Throws:
DisconnectException
-
doSyntaxrmSemantics
- Throws:
DisconnectException
-
pushLengthOnCollectionStack
protected final void pushLengthOnCollectionStack() -
adjustLengths
protected final void adjustLengths(int length) -
adjustDdmLength
protected int adjustDdmLength(int ddmLength, int length) -
popCollectionStack
protected final void popCollectionStack() -
peekCodePoint
- Throws:
DisconnectException
-
peekFastBytes
- Throws:
DisconnectException
-
parseLengthAndMatchCodePoint
- Throws:
DisconnectException
-
readLengthAndCodePoint
- Throws:
DisconnectException
-
readExtendedLength
- Throws:
DisconnectException
-
adjustCollectionAndDssLengths
private void adjustCollectionAndDssLengths(int length) -
startSameIdChainParse
- Throws:
DisconnectException
-
endOfSameIdChainData
- Throws:
DisconnectException
-
peekTotalColumnCount
- Throws:
DisconnectException
-
peekExtendedLength
- Throws:
DisconnectException
-
readFastUnsignedByte
- Throws:
DisconnectException
-
readFastShort
- Throws:
DisconnectException
-
readFastUnsignedShort
- Throws:
DisconnectException
-
readFastInt
- Throws:
DisconnectException
-
readFastString
- Throws:
DisconnectException
-
readFastBytes
- Throws:
DisconnectException
-
peekFastLength
- Throws:
DisconnectException
-
skipFastBytes
- Throws:
DisconnectException
-
readFastIntArray
- Throws:
DisconnectException
-
readFastString
-
readFastLDBytes
- Throws:
DisconnectException
-
readFastLong
- Throws:
DisconnectException
-
readFastByte
- Throws:
DisconnectException
-
mark
final void mark() -
popMark
private int popMark() -
getFastSkipSQLCARDrowLength
final int getFastSkipSQLCARDrowLength() -
getFastData
final ByteArrayOutputStream getFastData(ByteArrayOutputStream existingBuffer) throws DisconnectException - Throws:
DisconnectException
-
matchCodePoint
- Throws:
DisconnectException
-
peekNumOfColumns
- Throws:
DisconnectException
-
peekForNullSqlcagrp
protected final boolean peekForNullSqlcagrp() -
skipSQLDHROW
private int skipSQLDHROW(int offset)
-