@Override public boolean isImplicit() { return tagging.isImplicit(); }
@Override public boolean isImplicit() { return tagging.isImplicit(); }
@Override protected void decodeBody(Asn1ParseResult parseResult) throws IOException { Asn1Encodeable value = (Asn1Encodeable) getValue(); if (isImplicit()) { value.decodeBody(parseResult); } else { Asn1Container container = (Asn1Container) parseResult; Asn1ParseResult body = container.getChildren().get(0); value.decode(body); } }
@Override protected void encodeBody(ByteBuffer buffer) throws IOException { Asn1Encodeable value = (Asn1Encodeable) getValue(); if (isImplicit()) { value.encodeBody(buffer); } else { value.encode(buffer); } }
@Override protected void decodeBody(Asn1ParseResult parseResult) throws IOException { Asn1Encodeable value = (Asn1Encodeable) getValue(); if (isImplicit()) { value.decodeBody(parseResult); } else { Asn1Container container = (Asn1Container) parseResult; Asn1ParseResult body = container.getChildren().get(0); value.decode(body); } }
@Override protected int encodingBodyLength() throws IOException { Asn1Encodeable value = (Asn1Encodeable) getValue(); if (isImplicit()) { return value.encodingBodyLength(); } else { return value.encodingLength(); } }
@Override protected int encodingBodyLength() throws IOException { Asn1Encodeable value = (Asn1Encodeable) getValue(); if (isImplicit()) { return value.encodingBodyLength(); } else { return value.encodingLength(); } }
@Override protected void encodeBody(ByteBuffer buffer) throws IOException { Asn1Encodeable value = (Asn1Encodeable) getValue(); if (isImplicit()) { value.encodeBody(buffer); } else { value.encode(buffer); } }