Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New API for loading Station XML #2

Merged
merged 3 commits into from
Jul 28, 2016
Merged

Conversation

stevenmz
Copy link

Hi Dr. Crotwell,

This pull request contains three commits.

The first two commits add loadStationXML methods that take in an InputStream and a Reader instance, and refactors the filename method to use the new InputStream version to avoid code duplication. The motivation for these changes was to be able to use your library with StationXML data not necessarily stored in a file but as a blob somewhere else (Hadoop HDFS, Oracle, etc.).

The third commit contains source formatting done by by IDE, as well as code changes to eliminate compiler warnings.

Thanks,
Steven Magana-Zook
Lawrence Livermore National Laboratory

Steven Magaña-Zook added 3 commits July 27, 2016 15:52
…kes in a java.io.Reader instance instead of a filename.

This method adds flexibility to the API so that users can pull data from non-file sources.
Also included is a change the the filename version of the loadStationXML method that call the new InputStream-based version to avoid code duplication.
@crotwell crotwell merged commit fc1680e into crotwell:master Jul 28, 2016
@crotwell
Copy link
Owner

Looks good, thanks for submitting this.

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.

None yet

2 participants