Java InputStream Create getInputStream(String path)

Here you can find the source of getInputStream(String path)

Description

get Input Stream

License

Apache License

Declaration

public static InputStream getInputStream(String path) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.io.*;

public class Main {
    public static InputStream getInputStream(String path) {
        try {//from  w ww. java2  s  . c o  m
            return new FileInputStream(path);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
        return null;
    }
}

Related

  1. getInputStream(String inputFile)
  2. getInputStream(String location)
  3. getInputStream(String parentFolder, String fileName)
  4. getInputStream(String path)
  5. getInputStream(String path)
  6. getInputStream(String sPath)
  7. getInputStream(String str)
  8. getInputStream(String text)
  9. getInputStream(String thePath)