equal
deleted
inserted
replaced
98 * @param jarPath If jarPath is null then the resource is searched from |
98 * @param jarPath If jarPath is null then the resource is searched from |
99 * the classpath - like in normal class.getResourceAsStream. If it is |
99 * the classpath - like in normal class.getResourceAsStream. If it is |
100 * provided then it can be any Jar file availble in the file system. |
100 * provided then it can be any Jar file availble in the file system. |
101 * @param resName Name of the desired resource |
101 * @param resName Name of the desired resource |
102 * |
102 * |
103 * @return MemoryInputStream object as InputStream if resource is found, |
103 * @return NativeMemoryBlock instance if resource is found, otherwise null. |
104 * otherwise null. |
|
105 */ |
104 */ |
106 public static NativeMemoryBlock getResourceAsNativeMemory(String jarPath, |
105 public static NativeMemoryBlock getResourceAsNativeMemory(String jarPath, |
107 String resName) |
106 String resName) |
108 { |
107 { |
109 return JvmPort.getInstance().getResourceAsNativeMemory(jarPath, resName); |
108 return JvmPort.getInstance().getResourceAsNativeMemory(jarPath, resName); |