Here you can find the source of inputStreamBuffered(final File file)
Parameter | Description |
---|---|
file | the file to open |
Parameter | Description |
---|---|
FileNotFoundException | if the file could not be opened |
public static final BufferedInputStream inputStreamBuffered(final File file) throws FileNotFoundException
//package com.java2s; //License from project: Open Source License import java.io.BufferedInputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; public class Main { /** Open a buffered {@link InputStream}, equivalent to:<br/> * {@code new BufferedInputStream(new FileInputStream(file));} * @param file the file to open// ww w . ja v a 2 s . c o m * @return the buffered input stream from the file * @throws FileNotFoundException if the file could not be opened */ public static final BufferedInputStream inputStreamBuffered(final File file) throws FileNotFoundException { BufferedInputStream input = new BufferedInputStream(new FileInputStream(file)); return input; } }