question: public void encode ( OutputStream out ) throws IOException { DerOutputStream tmp = new DerOutputStream ( ) ; tmp . write ( key . getEncoded ( ) ) ; out . write ( tmp . toByteArray ( ) ) ; }
target:  Encode the key in DER form to the stream.