Java InputStream Create getInputStream(String filePath)

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

Description

get Input Stream

License

Open Source License

Declaration

private static InputStream getInputStream(String filePath) throws FileNotFoundException 

Method Source Code


//package com.java2s;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;

import java.io.InputStream;

public class Main {

    private static InputStream getInputStream(String filePath) throws FileNotFoundException {
        return new FileInputStream(filePath);
    }//  w w w.  ja  v a2  s .  c  om

    private static InputStream getInputStream(File file) throws FileNotFoundException {
        if (file == null) {
            return null;
        }

        return new FileInputStream(file);
    }
}

Related

  1. getInputStream(String fileName)
  2. getInputStream(String fileName)
  3. getInputStream(String filename)
  4. getInputStream(String filename)
  5. getInputStream(String filename)
  6. getInputStream(String fileType, String fileName)
  7. getInputStream(String fname, String enc)
  8. getInputStream(String inputFile)
  9. getInputStream(String location)