Here you can find the source of openInputStream(String infilename)
public static FileInputStream openInputStream(String infilename)
//package com.java2s; //License from project: Open Source License import java.io.*; public class Main { public static FileInputStream openInputStream(String infilename) { FileInputStream fis = null; try {//from w w w . j a v a2s.c o m fis = new FileInputStream(infilename); } catch (IOException ioe) { System.out.println(ioe.getMessage()); } return fis; } }