Java InputStream Create getInputStream(String fileName)

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

Description

get Input Stream

License

Open Source License

Declaration

private static InputStream getInputStream(String fileName)
            throws IOException 

Method Source Code

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

import java.io.IOException;
import java.io.InputStream;

public class Main {
    private static InputStream getInputStream(String fileName)
            throws IOException {
        ClassLoader classloader = Thread.currentThread()
                .getContextClassLoader();
        InputStream inputStream = classloader.getResourceAsStream(fileName);
        return inputStream;
    }//from   ww  w  . j  a v  a2 s.  co  m
}

Related

  1. getInputStream(final String sourceFolder, final Class clazz)
  2. getInputStream(String content)
  3. getInputStream(String data)
  4. getInputStream(String filename)
  5. getInputStream(String fileName)
  6. getInputStream(String filename)
  7. getInputStream(String fileName)
  8. getInputStream(String filename)
  9. getInputStream(String filePath)