protected final void parseLengthAndMatchCodePoint(int expectedCodePoint) throws DisconnectException { int actualCodePoint = 0; if (peekedCodePoint_ == END_OF_COLLECTION) { actualCodePoint = readLengthAndCodePoint(); } else { actualCodePoint = peekedCodePoint_; pos_ += (4 + peekedNumOfExtendedLenBytes_); ddmScalarLen_ = peekedLength_; if (peekedNumOfExtendedLenBytes_ == 0 && ddmScalarLen_ != -1) { adjustLengths(4); } else { adjustCollectionAndDssLengths(4 + peekedNumOfExtendedLenBytes_); } peekedLength_ = 0; peekedCodePoint_ = END_OF_COLLECTION; peekedNumOfExtendedLenBytes_ = 0; } if (actualCodePoint != expectedCodePoint) { agent_.accumulateChainBreakingReadExceptionAndThrow( new DisconnectException(agent_, new ClientMessageId(SQLState.NET_NOT_EXPECTED_CODEPOINT), new Integer(actualCodePoint), new Integer(expectedCodePoint))); } }
protected final void parseLengthAndMatchCodePoint(int expectedCodePoint) throws DisconnectException { int actualCodePoint = 0; if (peekedCodePoint_ == END_OF_COLLECTION) { actualCodePoint = readLengthAndCodePoint(); } else { actualCodePoint = peekedCodePoint_; pos_ += (4 + peekedNumOfExtendedLenBytes_); ddmScalarLen_ = peekedLength_; if (peekedNumOfExtendedLenBytes_ == 0 && ddmScalarLen_ != -1) { adjustLengths(4); } else { adjustCollectionAndDssLengths(4 + peekedNumOfExtendedLenBytes_); } peekedLength_ = 0; peekedCodePoint_ = END_OF_COLLECTION; peekedNumOfExtendedLenBytes_ = 0; } if (actualCodePoint != expectedCodePoint) { agent_.accumulateChainBreakingReadExceptionAndThrow( new DisconnectException(agent_, new ClientMessageId(SQLState.NET_NOT_EXPECTED_CODEPOINT), new Integer(actualCodePoint), new Integer(expectedCodePoint))); } }