code: public void encodeBuffer(ByteBuffer aBuffer, OutputStream aStream)
          throws IOException {
          byte [] buf = getBytes(aBuffer);
          encodeBuffer(buf, aStream);
      }
docs: Encode the <i>aBuffer</i> ByteBuffer and write the encoded
  result to the OutputStream <i>aStream</i>.
  <P>
  The ByteBuffer's position will be advanced to ByteBuffer's limit.