Here you can find the source of inputStream(String fileName)
public static FileInputStream inputStream(String fileName)
//package com.java2s; //License from project: Open Source License import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; public class Main { public static FileInputStream inputStream(String fileName) { FileInputStream stream = null; try {/*from w ww. jav a 2 s.c o m*/ stream = new FileInputStream(new File(fileName)); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } return stream; } }