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;
	}
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
根据文件名称resource打开输入流，并返回