snaker-core/src/main/java/org/snaker/engine/helper/StreamHelper.java
public static InputStream openStream(String resource) {
		ClassLoader classLoader = Thread.currentThread()
				.getContextClassLoader();
		InputStream stream = classLoader.getResourceAsStream(resource);

		if (stream == null) {
			stream = StreamHelper.class.getClassLoader().getResourceAsStream(resource);
		}

		return stream;
	}
public static InputStream openStream(String resource) {
		ClassLoader classLoader = Thread.currentThread()
				.getContextClassLoader();
		InputStream stream = classLoader.getResourceAsStream(resource);

		if (stream == null) {
			stream = StreamHelper.class.getClassLoader().getResourceAsStream(resource);
		}

		return stream;
	}
根据文件名称resource打开输入流，并返回
@param resource
@return