Java InputStream Read getInputStreamAsResource(Class clazz, String fileName)

Here you can find the source of getInputStreamAsResource(Class clazz, String fileName)

Description

get Input Stream As Resource

License

Open Source License

Declaration

public static InputStream getInputStreamAsResource(Class<?> clazz, String fileName) 

Method Source Code

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

import java.io.InputStream;

public class Main {
    public static InputStream getInputStreamAsResource(Class<?> clazz, String fileName) {
        InputStream stream = clazz.getResourceAsStream(fileName);
        return stream;
    }//from  w ww  .j a va 2s . c  om
}

Related

  1. getInputStream(Class clazz)
  2. getInputStream(Class ownerClass, String subName, String extension)
  3. getInputstream(File compressedFile)
  4. getInputStream(JarFile file, ZipEntry entry)
  5. getInputStream(Object caller, String name)
  6. getInputStreamFile(String URLString)
  7. getInputStreamFor(String path, Class clazz)
  8. getInputStreamForFileAbsolutePath(String _path)
  9. getInputStreamForResource(String name)