Finally managed to get the container identification working on an
InputStream.
Added a check that non-file-inputstreams work.