Skip to content

Comments

Add ResourceHandler implementations#47

Closed
sixcorners wants to merge 5 commits intoapache:masterfrom
sixcorners:add-resource-handler-implementations
Closed

Add ResourceHandler implementations#47
sixcorners wants to merge 5 commits intoapache:masterfrom
sixcorners:add-resource-handler-implementations

Conversation

@sixcorners
Copy link
Contributor

  1. What do you all use to format this code?
  2. I need to add unit tests to these but before that I want to ask:
  3. Do you all think it would be a good idea if the library provided some ready to use implementations of ResourceHandlers?

@slachiewicz
Copy link
Member

Thank you for proposal. Could you create Jira task for this improvement?

@sixcorners
Copy link
Contributor Author

@sixcorners
Copy link
Contributor Author

Added "throws IOException" back to the empty close methods.
I didn't want to lock in that API to never throw IOExceptions.
If #46 gets merged then omitting "throws IOException" would prevent removing the close methods without a breaking API change.

@sixcorners
Copy link
Contributor Author

Removed the thing where I made the overridden methods return the more specific type using co-variant return types. Returning BufferedReader or BufferedInputStream doesn't really help people using the API a lot but it does lock in the implementation that has to be returned.

@sixcorners
Copy link
Contributor Author

Is there a way to put a work in progress tag on this?
Kind of just wanted to create this to get feedback for now.

@cstamas
Copy link
Member

cstamas commented Apr 23, 2022

Obsoleted by #199

@cstamas cstamas closed this Apr 23, 2022
cstamas added a commit that referenced this pull request Apr 23, 2022
Add OOTB resource handler implementations to index reader.

Original PR #47

Co-authored-by: sixcorners <sixcorners@gmail.com>
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