Abstract InputStream 1st version

Signed-off-by: nasadiscovery <cj.nasa@gmail.com>