code: public void encodeBuffer(byte aBuffer[], OutputStream aStream)
      throws IOException {
          ByteArrayInputStream inStream = new ByteArrayInputStream(aBuffer);
          encodeBuffer(inStream, aStream);
      }
docs: Encode the buffer in <i>aBuffer</i> and write the encoded
  result to the OutputStream <i>aStream</i>.