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.
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.