Java InputStream Create getInputStream(String fileName)

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

Description

get Input Stream

License

Apache License

Declaration

private static InputStream getInputStream(String fileName) 

Method Source Code

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

import java.io.InputStream;

public class Main {
    private static InputStream getInputStream(String fileName) {
        return Thread.currentThread().getContextClassLoader().getResourceAsStream(fileName);
    }//from   w  w  w . j a  v a  2s.  c  o  m
}

Related

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