test_class.file: resource/impl/src/test/java/cloud/piranha/resource/JarResourceTest.java
test_class.identifier: JarResourceTest
test_case.body: @Test
      void testGetResource() {
          JarResource resource = new JarResource();
          assertNull(resource.getResource(null));
      }
test_case.class_method_signature: JarResourceTest.testGetResource()
test_case.full_signature: @Test void testGetResource()
test_case.identifier: testGetResource
test_case.invocations: assertNull getResource
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetResource()
focal_class.declarator: jarFile
focal_class.modifier: private
focal_class.original_string: private File jarFile;
focal_class.type: File
focal_class.var_name: jarFile
focal_class.file: resource/impl/src/main/java/cloud/piranha/resource/JarResource.java
focal_class.identifier: JarResource
focal_class.interfaces: implements Resource
focal_class.class_method_signature: JarResource.JarResource()
focal_class.full_signature: public  JarResource()
focal_class.identifier: JarResource
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  JarResource()
focal_class.class_method_signature: JarResource.JarResource(File jarFile)
focal_class.full_signature: public  JarResource(File jarFile)
focal_class.identifier: JarResource
focal_class.modifiers: public
focal_class.parameters: (File jarFile)
focal_class.signature:  JarResource(File jarFile)
focal_class.class_method_signature: JarResource.getResource(String location)
focal_class.full_signature: @Override public URL getResource(String location)
focal_class.identifier: getResource
focal_class.modifiers: @Override public
focal_class.parameters: (String location)
focal_class.return: URL
focal_class.signature: URL getResource(String location)
focal_class.class_method_signature: JarResource.getResourceAsStream(String location)
focal_class.full_signature: @Override public InputStream getResourceAsStream(String location)
focal_class.identifier: getResourceAsStream
focal_class.modifiers: @Override public
focal_class.parameters: (String location)
focal_class.return: InputStream
focal_class.signature: InputStream getResourceAsStream(String location)
focal_class.class_method_signature: JarResource.getAllLocations()
focal_class.full_signature: @Override public Stream<String> getAllLocations()
focal_class.identifier: getAllLocations
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Stream<String>
focal_class.signature: Stream<String> getAllLocations()
focal_class.class_method_signature: JarResource.getJarFile()
focal_class.full_signature: public File getJarFile()
focal_class.identifier: getJarFile
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: File
focal_class.signature: File getJarFile()
focal_class.class_method_signature: JarResource.setJarFile(File jarFile)
focal_class.full_signature: public void setJarFile(File jarFile)
focal_class.identifier: setJarFile
focal_class.modifiers: public
focal_class.parameters: (File jarFile)
focal_class.return: void
focal_class.signature: void setJarFile(File jarFile)
focal_method.body: @Override
      public URL getResource(String location) {
          URL result = null;
          if (location != null) {
              try {
                  try (JarFile jar = new JarFile(jarFile)) {
                      if (jar.getJarEntry(location) != null) {
                          result = new URL("jar:" + jarFile.toURI() + "!/" + location);
                      }
                  }
              } catch (IOException ioe) {
                  result = null;
              }
          }
          return result;
      }
focal_method.class_method_signature: JarResource.getResource(String location)
focal_method.full_signature: @Override public URL getResource(String location)
focal_method.identifier: getResource
focal_method.invocations: getJarEntry toURI
focal_method.modifiers: @Override public
focal_method.parameters: (String location)
focal_method.return: URL
focal_method.signature: URL getResource(String location)