javacommons/utils/javasrc/com/nokia/mj/impl/rt/support/Jvm.java
changeset 80 d6dafc5d983f
parent 21 2a9601315dfc
equal deleted inserted replaced
78:71ad690e91f5 80:d6dafc5d983f
    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);