Here you can find the source of getInputStreamFromClassPath(String filename)
Parameter | Description |
---|---|
filename | a parameter |
public static InputStream getInputStreamFromClassPath(String filename)
//package com.java2s; //License from project: Apache License import java.io.InputStream; public class Main { /**/*from w w w .j av a 2s. c om*/ * * @param filename * @return */ public static InputStream getInputStreamFromClassPath(String filename) { return Thread.currentThread().getContextClassLoader().getResourceAsStream(filename); } }