Java Resource Load getResourceAsStrem(String name)

Here you can find the source of getResourceAsStrem(String name)

Description

get Resource As Strem

License

Open Source License

Declaration

private static InputStream getResourceAsStrem(String name) 

Method Source Code


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

import java.io.*;

public class Main {
    private static InputStream getResourceAsStrem(String name) {
        return Thread.currentThread().getContextClassLoader().getResourceAsStream(name);
    }//from  w w  w .jav  a 2s  . c  o  m
}

Related

  1. getResourceAsStream(String resName, Object obj)
  2. getResourceAsStream(String resource, ClassLoader classLoader)
  3. getResourceAsStream(String resource, ClassLoader classLoader)
  4. getResourceAsStream(String resourcePath)
  5. getResourceAsStreamInClassPath(@SuppressWarnings("rawtypes") Class clazz, String filepath)
  6. getResourceAsString(Class clazz, String name)
  7. getResourceAsString(Class clazz, String resource)
  8. getResourceAsString(Class theClass, String fileName)
  9. getResourceAsString(final String resourceName, final Class caller, final String charset)