@Override public void endSet() throws ASN1Exception { DecoderState lastState = states.peekLast(); if ((lastState == null) || (lastState.getTag() != SET_TYPE)) { throw log.noSetToEnd(); } endConstructedElement(lastState.getNextElementIndex()); states.removeLast(); }
@Override public void endSequence() throws ASN1Exception { DecoderState lastState = states.peekLast(); if ((lastState == null) || (lastState.getTag() != SEQUENCE_TYPE)) { throw log.noSequenceToEnd(); } endConstructedElement(lastState.getNextElementIndex()); states.removeLast(); }
@Override public void endSet() throws ASN1Exception { DecoderState lastState = states.peekLast(); if ((lastState == null) || (lastState.getTag() != SET_TYPE)) { throw log.noSetToEnd(); } endConstructedElement(lastState.getNextElementIndex()); states.removeLast(); }
@Override public void endSequence() throws ASN1Exception { DecoderState lastState = states.peekLast(); if ((lastState == null) || (lastState.getTag() != SEQUENCE_TYPE)) { throw log.noSequenceToEnd(); } endConstructedElement(lastState.getNextElementIndex()); states.removeLast(); }
@Override public void endExplicit() throws ASN1Exception { DecoderState lastState = states.peekLast(); if ((lastState == null) || (lastState.getTag() == SEQUENCE_TYPE) || (lastState.getTag() == SET_TYPE) || ((lastState.getTag() & CONSTRUCTED_MASK) == 0)) { throw log.noExplicitlyTaggedElementToEnd(); } endConstructedElement(lastState.getNextElementIndex()); states.removeLast(); }
@Override public void endExplicit() throws ASN1Exception { DecoderState lastState = states.peekLast(); if ((lastState == null) || (lastState.getTag() == SEQUENCE_TYPE) || (lastState.getTag() == SET_TYPE) || ((lastState.getTag() & CONSTRUCTED_MASK) == 0)) { throw log.noExplicitlyTaggedElementToEnd(); } endConstructedElement(lastState.getNextElementIndex()); states.removeLast(); }
@Override public void endSet() throws ASN1Exception { DecoderState lastState = states.peekLast(); if ((lastState == null) || (lastState.getTag() != SET_TYPE)) { throw log.noSetToEnd(); } endConstructedElement(lastState.getNextElementIndex()); states.removeLast(); }
@Override public void endSequence() throws ASN1Exception { DecoderState lastState = states.peekLast(); if ((lastState == null) || (lastState.getTag() != SEQUENCE_TYPE)) { throw log.noSequenceToEnd(); } endConstructedElement(lastState.getNextElementIndex()); states.removeLast(); }
@Override public void endExplicit() throws ASN1Exception { DecoderState lastState = states.peekLast(); if ((lastState == null) || (lastState.getTag() == SEQUENCE_TYPE) || (lastState.getTag() == SET_TYPE) || ((lastState.getTag() & CONSTRUCTED_MASK) == 0)) { throw log.noExplicitlyTaggedElementToEnd(); } endConstructedElement(lastState.getNextElementIndex()); states.removeLast(); }
@Override public void endExplicit() throws ASN1Exception { DecoderState lastState = states.peekLast(); if ((lastState == null) || (lastState.getTag() == SEQUENCE_TYPE) || (lastState.getTag() == SET_TYPE) || ((lastState.getTag() & CONSTRUCTED_MASK) == 0)) { throw log.noExplicitlyTaggedElementToEnd(); } endConstructedElement(lastState.getNextElementIndex()); states.removeLast(); }
@Override public void endSequence() throws ASN1Exception { DecoderState lastState = states.peekLast(); if ((lastState == null) || (lastState.getTag() != SEQUENCE_TYPE)) { throw log.noSequenceToEnd(); } endConstructedElement(lastState.getNextElementIndex()); states.removeLast(); }
@Override public void endSet() throws ASN1Exception { DecoderState lastState = states.peekLast(); if ((lastState == null) || (lastState.getTag() != SET_TYPE)) { throw log.noSetToEnd(); } endConstructedElement(lastState.getNextElementIndex()); states.removeLast(); }