@Override public byte[] taggedEncode(TaggingOption taggingOption) throws IOException { int len = taggedEncodingLength(taggingOption); ByteBuffer byteBuffer = ByteBuffer.allocate(len); taggedEncode(byteBuffer, taggingOption); byteBuffer.flip(); return byteBuffer.array(); }
@Override public byte[] taggedEncode(TaggingOption taggingOption) throws IOException { int len = taggedEncodingLength(taggingOption); ByteBuffer byteBuffer = ByteBuffer.allocate(len); taggedEncode(byteBuffer, taggingOption); byteBuffer.flip(); return byteBuffer.array(); }
@Override protected void encodeBody(ByteBuffer buffer) throws IOException { Asn1Encodeable theValue = (Asn1Encodeable) getValue(); if (theValue != null) { if (chosenField.isTagged()) { TaggingOption taggingOption = chosenField.getTaggingOption(); theValue.taggedEncode(buffer, taggingOption); } else { theValue.encode(buffer); } } }
@Override public void encode(ByteBuffer buffer) throws IOException { Asn1Encodeable theValue = (Asn1Encodeable) getValue(); if (theValue != null) { if (chosenField.isTagged()) { TaggingOption taggingOption = chosenField.getTaggingOption(); theValue.taggedEncode(buffer, taggingOption); } else { theValue.encode(buffer); } } }
@Override public void encode(ByteBuffer buffer) throws IOException { Asn1Encodeable theValue = (Asn1Encodeable) getValue(); if (theValue != null) { if (chosenField.isTagged()) { TaggingOption taggingOption = chosenField.getTaggingOption(); theValue.taggedEncode(buffer, taggingOption); } else { theValue.encode(buffer); } } }
@Override protected void encodeBody(ByteBuffer buffer) throws IOException { Asn1Encodeable theValue = (Asn1Encodeable) getValue(); if (theValue != null) { if (chosenField.isTagged()) { TaggingOption taggingOption = chosenField.getTaggingOption(); theValue.taggedEncode(buffer, taggingOption); } else { theValue.encode(buffer); } } }
@Override public byte[] encode() throws IOException { Asn1Encodeable theValue = (Asn1Encodeable) getValue(); if (theValue != null) { if (chosenField.isTagged()) { TaggingOption taggingOption = chosenField.getTaggingOption(); return theValue.taggedEncode(taggingOption); } else { return theValue.encode(); } } return null; }
@Override public byte[] encode() throws IOException { Asn1Encodeable theValue = (Asn1Encodeable) getValue(); if (theValue != null) { if (chosenField.isTagged()) { TaggingOption taggingOption = chosenField.getTaggingOption(); return theValue.taggedEncode(taggingOption); } else { return theValue.encode(); } } return null; }
@Override public void encode(ByteBuffer buffer) throws IOException { Asn1Encodeable theValue = (Asn1Encodeable) getValue(); if (theValue != null) { if (!isBlindlyDecoded) { if (decodeInfo.isTagged()) { TaggingOption taggingOption = decodeInfo.getTaggingOption(); theValue.taggedEncode(buffer, taggingOption); } else { theValue.encode(buffer); } } else { theValue.encode(buffer); } } }
@Override public void encode(ByteBuffer buffer) throws IOException { Asn1Encodeable theValue = (Asn1Encodeable) getValue(); if (theValue != null) { if (!isBlindlyDecoded) { if (decodeInfo.isTagged()) { TaggingOption taggingOption = decodeInfo.getTaggingOption(); theValue.taggedEncode(buffer, taggingOption); } else { theValue.encode(buffer); } } else { theValue.encode(buffer); } } }