public byte decodeBuffer(InputStream in)[] throws IOException {
  ByteArrayOutputStream outStream=new ByteArrayOutputStream();
  decodeBuffer(in,outStream);
  return (outStream.toByteArray());
}

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