Java File to InputStream newInputStream(File file)

Here you can find the source of newInputStream(File file)

Description

new Input Stream

License

Open Source License

Declaration

public static FileInputStream newInputStream(File file) 

Method Source Code

//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;
        }
    }
}

Related

  1. newInputStream(File file)
  2. openInputStream(File file)
  3. openInputStream(File file)
  4. openInputStream(File file)
  5. openInputStream(File file)