code: public NYTCorpusDocument parseNYTCorpusDocumentFromFile(InputStream is, boolean validating) {
  
      Document document = null;
      if (validating) {
        document = loadValidating(is);
      } else {
        document = loadNonValidating(is);
      }
      return parseNYTCorpusDocumentFromDOMDocument(is, document);
    }
docs: Parse an New York Times Document from an {@link InputStream}.
  
  @param is
  The {@link InputStream} from which to parse the document.
  @param validating
  True if the file is to be validated against the nitf DTD and
  false if it is not. It is recommended that validation be
  disabled, as all documents in the corpus have previously been
  validated against the NITF DTD.
  @return The parsed document, or null if an error occurs.