crotwell / seisFile

A library for reading and writing seismic file formats in java.
GNU Lesser General Public License v3.0
27 stars 20 forks source link

New API for loading Station XML #2

Closed stevenmz closed 8 years ago

stevenmz commented 8 years ago

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

crotwell commented 8 years ago

Looks good, thanks for submitting this.