public void encodeToStream(OutputStream out, SNMPContext<?> context) throws IOException { try (BEROutputStream aout = new BEROutputStream(out)) { DEREncodable obj = this.encode(context); aout.writeObject(obj); } }
public void encodeToStream(OutputStream out) throws IOException { try (BEROutputStream aout = new BEROutputStream(out)) { DEREncodable obj = this.encode(); aout.writeObject(obj); } }