void parseSQLDTARDdata(NetCursor netCursor) throws DisconnectException { if (longValueForDecryption_ == null) { netCursor.dataBufferStream_ = getData(netCursor.dataBufferStream_); netCursor.dataBuffer_ = netCursor.dataBufferStream_.toByteArray(); } else { int size = netCursor.dataBufferStream_.size(); if (size == 0) { netCursor.dataBuffer_ = longValueForDecryption_; //longValue_ = null; } else { byte[] newArray = new byte[size + longValueForDecryption_.length]; System.arraycopy(netCursor.dataBuffer_, 0, newArray, 0, size); System.arraycopy(longValueForDecryption_, 0, newArray, size, longValueForDecryption_.length); netCursor.dataBuffer_ = newArray; //longValue_ = null; } } netCursor.lastValidBytePosition_ = netCursor.dataBuffer_.length; }
void parseSQLDTARDdata(NetCursor netCursor) throws DisconnectException { if (longValueForDecryption_ == null) { netCursor.dataBufferStream_ = getData(netCursor.dataBufferStream_); netCursor.dataBuffer_ = netCursor.dataBufferStream_.toByteArray(); } else { int size = netCursor.dataBufferStream_.size(); if (size == 0) { netCursor.dataBuffer_ = longValueForDecryption_; //longValue_ = null; } else { byte[] newArray = new byte[size + longValueForDecryption_.length]; System.arraycopy(netCursor.dataBuffer_, 0, newArray, 0, size); System.arraycopy(longValueForDecryption_, 0, newArray, size, longValueForDecryption_.length); netCursor.dataBuffer_ = newArray; //longValue_ = null; } } netCursor.lastValidBytePosition_ = netCursor.dataBuffer_.length; }
protected void copyEXTDTA(NetCursor netCursor) throws DisconnectException { try { parseLengthAndMatchCodePoint(CodePoint.EXTDTA); byte[] data = null; if (longValueForDecryption_ == null) { data = (getData(null)).toByteArray(); } else { data = longValueForDecryption_; dssLength_ = 0; longValueForDecryption_ = null; } netCursor.extdtaData_.add(data); } catch (java.lang.OutOfMemoryError e) { agent_.accumulateChainBreakingReadExceptionAndThrow(new DisconnectException(agent_, new ClientMessageId(SQLState.NET_LOB_DATA_TOO_LARGE_FOR_JVM), null, e)); } }
protected void copyEXTDTA(NetCursor netCursor) throws DisconnectException { try { parseLengthAndMatchCodePoint(CodePoint.EXTDTA); byte[] data = null; if (longValueForDecryption_ == null) { data = (getData(null)).toByteArray(); } else { data = longValueForDecryption_; dssLength_ = 0; longValueForDecryption_ = null; } netCursor.extdtaData_.add(data); } catch (java.lang.OutOfMemoryError e) { agent_.accumulateChainBreakingReadExceptionAndThrow(new DisconnectException(agent_, new ClientMessageId(SQLState.NET_LOB_DATA_TOO_LARGE_FOR_JVM), null, e)); } }