code: public byte decodeBuffer(InputStream in)[] throws IOException {
          ByteArrayOutputStream outStream = new ByteArrayOutputStream();
          decodeBuffer(in, outStream);
          return (outStream.toByteArray());
      }
docs: Decode the contents of the inputstream into a buffer.