protected final void startSameIdChainParse() throws DisconnectException { readDssHeader(); netAgent_.clearSvrcod(); }
protected final void startSameIdChainParse() throws DisconnectException { readDssHeader(); netAgent_.clearSvrcod(); }
protected final int peekCodePoint() throws DisconnectException { if (topDdmCollectionStack_ != EMPTY_STACK) { if (ddmCollectionLenStack_[topDdmCollectionStack_] == 0) { return END_OF_COLLECTION; } else if (ddmCollectionLenStack_[topDdmCollectionStack_] < 4) { // error } } // if there is no more data in the current dss, and the dss is not // continued, indicate the end of the same Id chain or read the next dss header. if ((dssLength_ == 0) && (!dssIsContinued_)) { if (!dssIsChainedWithSameID_) { return END_OF_SAME_ID_CHAIN; } readDssHeader(); } if (longBufferForDecryption_ == null) //we don't need to do this if it's data stream encryption { ensureBLayerDataInBuffer(4); } peekedLength_ = ((buffer_[pos_] & 0xff) << 8) + ((buffer_[pos_ + 1] & 0xff) << 0); peekedCodePoint_ = ((buffer_[pos_ + 2] & 0xff) << 8) + ((buffer_[pos_ + 3] & 0xff) << 0); // check for extended length if ((peekedLength_ & 0x8000) == 0x8000) { peekExtendedLength(); } else { peekedNumOfExtendedLenBytes_ = 0; } return peekedCodePoint_; }
protected final int peekCodePoint() throws DisconnectException { if (topDdmCollectionStack_ != EMPTY_STACK) { if (ddmCollectionLenStack_[topDdmCollectionStack_] == 0) { return END_OF_COLLECTION; } else if (ddmCollectionLenStack_[topDdmCollectionStack_] < 4) { // error } } // if there is no more data in the current dss, and the dss is not // continued, indicate the end of the same Id chain or read the next dss header. if ((dssLength_ == 0) && (!dssIsContinued_)) { if (!dssIsChainedWithSameID_) { return END_OF_SAME_ID_CHAIN; } readDssHeader(); } if (longBufferForDecryption_ == null) //we don't need to do this if it's data stream encryption { ensureBLayerDataInBuffer(4); } peekedLength_ = ((buffer_[pos_] & 0xff) << 8) + ((buffer_[pos_ + 1] & 0xff) << 0); peekedCodePoint_ = ((buffer_[pos_ + 2] & 0xff) << 8) + ((buffer_[pos_ + 3] & 0xff) << 0); // check for extended length if ((peekedLength_ & 0x8000) == 0x8000) { peekExtendedLength(); } else { peekedNumOfExtendedLenBytes_ = 0; } return peekedCodePoint_; }
return END_OF_SAME_ID_CHAIN; readDssHeader();
return END_OF_SAME_ID_CHAIN; readDssHeader();