Adding overload for directly supporting InputStream
Removing incorrect import