USPTO / PatentPublicData

Utility tools to help download and parse patent data made available to the public
Other
182 stars 80 forks source link

The Example Usage in Patent Document is not working #63

Closed several27 closed 6 years ago

several27 commented 6 years ago

As above. The dependencies are wrong and there are some weird problems with the reader at this line:

 try (PatentReader patentReader = new PatentReader(xmlDocStr, patentDocFormat)) {
bgfeldm commented 6 years ago

Seems I updated the class a while back but forgot to update the example.

The following

 try (PatentReader patentReader = new PatentReader(xmlDocStr, patentDocFormat)) {
     Patent patent = patentReader.read();

Should be:

 try (PatentReader patentReader = new PatentReader(patentDocFormat)) {
     Patent patent = patentReader.read(xmlDocStr);