Java 类org.bouncycastle.asn1.BEROutputStream 实例源码

项目:SNMP-IB    文件:SNMPMessage.java   
public void encodeToStream(OutputStream out, SNMPContext<?> context) throws IOException
{
    try (BEROutputStream aout = new BEROutputStream(out))
    {
        DEREncodable obj = this.encode(context);
        aout.writeObject(obj);
    }
}
项目:SNMP-IB    文件:SNMPTranscodable.java   
public void encodeToStream(OutputStream out) throws IOException
{
    try (BEROutputStream aout = new BEROutputStream(out))
    {
        DEREncodable obj = this.encode();
        aout.writeObject(obj);
    }
}