phenopackets / phenopacket-reference-implementation

Reference java implementation for phenopackets
BSD 3-Clause "New" or "Revised" License
6 stars 9 forks source link

Added methods for reading from input stream. #46

Closed balhoff closed 8 years ago

balhoff commented 8 years ago

I expect that pxftools will want to be able to read from stdin. I added methods to the JSON and YAML readers to handle an InputStream. I wasn't sure whether it was best to overload readFile or make a separate method—since ObjectMapper already handles both I decided to make a separate readInputStream and call the alternative in ObjectMapper directly.