Here you can find the source of newInputStream(File file)
public static FileInputStream newInputStream(File file)
//package com.java2s; //License from project: Open Source License import java.io.File; import java.io.FileInputStream; public class Main { public static FileInputStream newInputStream(File file) { try {//from ww w.j a v a 2s .co m return new FileInputStream(file); } catch (Exception e) { e.printStackTrace(); return null; } } }