public Asn1Any(Asn1Type anyValue) { this(); setValue(anyValue); }
public Asn1Any(Asn1Type anyValue) { this(); setValue(anyValue); }
@Override public void decode(ByteBuffer content) throws IOException { setValue(null); super.decode(content); }
@Override public void decode(ByteBuffer content) throws IOException { setValue(null); super.decode(content); }
private void blindlyDecode() throws IOException { Asn1Type anyValue = Asn1Converter.convert(parseResult, false); if (decodeInfo != null && decodeInfo.isTagged()) { // Escape the wrapper Asn1Constructed constructed = (Asn1Constructed) anyValue; Asn1Type innerValue = constructed.getValue().get(0); setValue(innerValue); } else { setValue(anyValue); } isBlindlyDecoded = true; }
private void blindlyDecode() throws IOException { Asn1Type anyValue = Asn1Converter.convert(parseResult, false); if (decodeInfo != null && decodeInfo.isTagged()) { // Escape the wrapper Asn1Constructed constructed = (Asn1Constructed) anyValue; Asn1Type innerValue = constructed.getValue().get(0); setValue(innerValue); } else { setValue(anyValue); } isBlindlyDecoded = true; }
private <T extends Asn1Type> void typeAwareDecode(Class<T> t) throws IOException { T result; try { result = t.newInstance(); } catch (Exception e) { throw new IOException("No default constructor?", e); } if (parseResult.isContextSpecific()) { Asn1Binder.bindWithTagging(parseResult, result, decodeInfo.getTaggingOption()); } else { Asn1Binder.bind(parseResult, result); } setValue(result); isBlindlyDecoded = false; }
private <T extends Asn1Type> void typeAwareDecode(Class<T> t) throws IOException { T result; try { result = t.newInstance(); } catch (Exception e) { throw new IOException("No default constructor?", e); } if (parseResult.isContextSpecific()) { Asn1Binder.bindWithTagging(parseResult, result, decodeInfo.getTaggingOption()); } else { Asn1Binder.bind(parseResult, result); } setValue(result); isBlindlyDecoded = false; }