Remove FileInputStream class hierarchy.

Replace it with delegate inner classes (GraphInputStream and implementation).