Here you can find the source of getInputStream(String path)
public static InputStream getInputStream(String path)
//package com.java2s; //License from project: Apache License import java.io.*; public class Main { public static InputStream getInputStream(String path) { try {//from w ww. java2 s . c o m return new FileInputStream(path); } catch (FileNotFoundException e) { e.printStackTrace(); } return null; } }