the constructor for Parser now accepts an InputStream instead of a FileInputStream.