the hierarchy of the file stream in java http://docs.oracle.com/javase/6/docs/api/java/io/package-tree.html