Skip to content

Add GFF3Reader overload that accepts Path#890

Merged
josemduarte merged 3 commits into
biojava:masterfrom
jean-philippe-martin:jp_gff3reader_overload
Sep 25, 2020
Merged

Add GFF3Reader overload that accepts Path#890
josemduarte merged 3 commits into
biojava:masterfrom
jean-philippe-martin:jp_gff3reader_overload

Conversation

@jean-philippe-martin

Copy link
Copy Markdown
Contributor

The String-based functions are still here, and almost all the code is shared.
The Path overload allows everyone to read files via NIO providers, such as e.g.
the GCS NIO provider for reading files on Google Cloud Storage.

Key change: new BufferedReader(new FileReader(filename)) -> Files.newBufferedReader(path)

The String-based functions are still here, and almost all the code is shared.
The Path overload allows us to read files via NIO providers, such as e.g.
the GCS NIO provider for reading files on Google Cloud Storage.

@josemduarte josemduarte left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice addition, thank you!

A side note: if you see opportunity to improve interfaces related to this and there's a good case for it, now is a good time because we are working towards a 6.0.0 (breaking changes) release.

@jean-philippe-martin

Copy link
Copy Markdown
Contributor Author

Thank you @josemduarte! I see I do not have write access, so you'll have to do the merge (or squash+merge) for me it looks like. Let me know whether there's something you'd like me to do to help.

I'm sure there are other places that are using File or String instead of Path, but someone else will have to update those.

Good luck for the 6.0.0 release!

@josemduarte

Copy link
Copy Markdown
Contributor

Yes merges have to come from developers with write access. There's a few of us. In any case we leave PRs opened for a few days to allow enough time for anyone else to review.

@sbliven sbliven left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice addition, thanks!

@josemduarte
josemduarte merged commit 129a0a1 into biojava:master Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants