Exposing a version that takes InputStream