public void encodeAndSave(int encodingSizeGuess) throws IOException { BerByteArrayOutputStream berOStream = new BerByteArrayOutputStream(encodingSizeGuess); encode(berOStream, false); code = berOStream.getArray(); }