void writeImplicitObject(ASN1Primitive obj) throws IOException { if (obj != null) { obj.encode(new ImplicitOutputStream(os)); } else { throw new IOException("null object detected"); } }
public void writeObject( ASN1Encodable obj) throws IOException { if (obj != null) { obj.toASN1Primitive().encode(this); } else { throw new IOException("null object detected"); } }
void writeImplicitObject(ASN1Primitive obj) throws IOException { if (obj != null) { obj.encode(new ImplicitOutputStream(os)); } else { throw new IOException("null object detected"); } }
public void writeObject( ASN1Encodable obj) throws IOException { if (obj != null) { obj.toASN1Primitive().encode(this); } else { throw new IOException("null object detected"); } }
public void writeObject( Object obj) throws IOException { if (obj == null) { writeNull(); } else if (obj instanceof ASN1Primitive) { ((ASN1Primitive)obj).encode(this); } else if (obj instanceof ASN1Encodable) { ((ASN1Encodable)obj).toASN1Primitive().encode(this); } else { throw new IOException("object not BEREncodable"); } } }
public void writeObject( ASN1Encodable obj) throws IOException { if (obj != null) { obj.toASN1Primitive().toDERObject().encode(this); } else { throw new IOException("null object detected"); } }
public void writeObject( ASN1Encodable obj) throws IOException { if (obj != null) { obj.toASN1Primitive().toDERObject().encode(this); } else { throw new IOException("null object detected"); } }
public void writeObject( ASN1Encodable obj) throws IOException { if (obj != null) { obj.toASN1Primitive().toDLObject().encode(this); } else { throw new IOException("null object detected"); } } }
/** * Write out an ASN.1 object. * * @param obj the object to be encoded. * @throws IOException if there is an issue on encoding or output of the object. */ public void writeObject( Object obj) throws IOException { if (obj == null) { writeNull(); } else if (obj instanceof ASN1Primitive) { ((ASN1Primitive)obj).encode(this); } else if (obj instanceof ASN1Encodable) { ((ASN1Encodable)obj).toASN1Primitive().encode(this); } else { throw new IOException("object not BEREncodable"); } } }
public void writeObject( ASN1Encodable obj) throws IOException { if (obj != null) { obj.toASN1Primitive().toDLObject().encode(this); } else { throw new IOException("null object detected"); } } }
public void addObject( ASN1Encodable object) throws IOException { object.toASN1Primitive().encode(new BEROutputStream(_out)); }
public void addObject( ASN1Encodable object) throws IOException { object.toASN1Primitive().encode(new DEROutputStream(_bOut)); }
/** * Add an object to the SEQUENCE being generated. * * @param object an ASN.1 encodable object to add. * @throws IOException if the target stream cannot be written to or the object cannot be encoded. */ public void addObject( ASN1Encodable object) throws IOException { object.toASN1Primitive().encode(new BEROutputStream(_out)); }
/** * Add an object to the SEQUENCE being generated. * * @param object an ASN.1 encodable object to add. * @throws IOException if the target stream cannot be written to or the object cannot be encoded. */ public void addObject( ASN1Encodable object) throws IOException { object.toASN1Primitive().encode(new DEROutputStream(_bOut)); }
void encode( ASN1OutputStream out) throws IOException { if (encoded != null) { out.writeEncoded(BERTags.SEQUENCE | BERTags.CONSTRUCTED, encoded); } else { super.toDLObject().encode(out); } } }
void encode( ASN1OutputStream out) throws IOException { if (encoded != null) { out.writeEncoded(BERTags.SEQUENCE | BERTags.CONSTRUCTED, encoded); } else { super.toDLObject().encode(out); } } }