Package org.apache.derby.client.net
Class Reply
java.lang.Object
org.apache.derby.client.net.Reply
- Direct Known Subclasses:
NetConnectionReply
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Agent
protected byte[]
protected int
private int
private int[]
private int
protected static final int
private int
private boolean
private boolean
protected int
private static final int
(package private) static final int
(package private) static final int
protected boolean
protected byte[]
protected int
protected int
protected byte[]
private static final int
protected NetAgent
private int
protected int
private int
protected int
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
adjustCollectionAndDssLengths
(int length) protected int
adjustDdmLength
(int ddmLength, int length) protected final void
adjustLengths
(int length) private void
compressBLayerData
(int continueDssHeaderCount) private void
decryptData
(int gdsFormatter, int oldDssLength) (package private) final void
doSyntaxrmSemantics
(int syntaxErrorCode) protected final void
private int
ensureALayerDataInBuffer
(int desiredDataSize) protected final void
ensureBLayerDataInBuffer
(int desiredDataSize) private void
ensureSpaceInBufferForFill
(int desiredSpace) private int
fill
(int minimumBytesNeeded) (package private) final ByteArrayOutputStream
getData
(ByteArrayOutputStream existingBuffer) (package private) final int
(package private) final ByteArrayOutputStream
getFastData
(ByteArrayOutputStream existingBuffer) (package private) final int
(package private) final void
(package private) final void
mark()
protected final void
matchCodePoint
(int expectedCodePoint) protected final void
parseLengthAndMatchCodePoint
(int expectedCodePoint) protected final int
private void
protected final int
peekFastBytes
(byte[] b, int offset, int length) protected final int
protected final boolean
protected final int
protected final int
peekTotalColumnCount
(int tripletLength) protected final void
private int
popMark()
protected final void
(package private) final byte
readByte()
(package private) final byte[]
(package private) final byte[]
readBytes
(int length) private void
private void
private void
(package private) final byte
(package private) final byte[]
readFastBytes
(int length) (package private) final int
(package private) final void
readFastIntArray
(int[] array) (package private) final byte[]
(package private) final long
(package private) final short
(package private) final String
readFastString
(int length) (package private) final String
readFastString
(int length, Charset encoding) (package private) final int
(package private) final int
(package private) final int
readInt()
private int
(package private) final short
(package private) final String
(package private) final String
readString
(int length, Charset encoding) (package private) final int
(package private) final int
(package private) final int[]
private void
shiftBuffer
(byte[] destinationBuffer) (package private) final void
(package private) final void
skipBytes
(int length) (package private) final void
skipFastBytes
(int length) private int
skipSQLDHROW
(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)
-