Java File to InputStream openInputStream(String infilename)

Here you can find the source of openInputStream(String infilename)

Description

open Input Stream

License

Open Source License

Declaration

public static FileInputStream openInputStream(String infilename) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.*;

public class Main {
    public static FileInputStream openInputStream(String infilename) {
        FileInputStream fis = null;
        try {//from   w  w  w .  j a  v  a2s.c  o m
            fis = new FileInputStream(infilename);

        } catch (IOException ioe) {
            System.out.println(ioe.getMessage());
        }
        return fis;
    }
}

Related

  1. openInputStream(File file)
  2. openInputStream(File file)
  3. openInputStream(File file, boolean buffer)
  4. openInputStream(File file, boolean refuseEmpty)
  5. openInputStream(String filePath)
  6. openInputStream(String path)
  7. openStream(final Class clazz, final String path)
  8. openStream(final File file)
  9. openStream(InputStream in)