Here you can find the source of getInputStream(String fileName)
public static InputStream getInputStream(String fileName) throws IOException
//package com.java2s; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; public class Main { public static InputStream getInputStream(String fileName) throws IOException { return new FileInputStream(fileName); }//from w w w . ja v a2s . c o m }