Java tutorial
//package com.java2s; //License from project: Open Source License import java.io.BufferedInputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; public class Main { public static InputStream getInitializedXMLInputStream(File f) throws IOException { return new BufferedInputStream(new FileInputStream(f)); } }