This seems like the way to go:
ContentInputStream.class.isAssignableFrom(type)

--
Is ParameterizedType.getActualTypeArguments() necessary?