code: public void encode(String string, OutputStream out) throws IOException {
    		encode(new ByteArrayInputStream(string.getBytes()),out);
  	}
docs: Convenience Function
  
  encode String into InputStream and call encode(InputStream, OutputStream)
  
  @param string
  @param out
  @throws IOException