test_class.file: resource/impl/src/test/java/cloud/piranha/resource/DirectoryResourceTest.java
test_class.identifier: DirectoryResourceTest
test_case.body: @Test
      void testGetResourceAsStream2() {
          DirectoryResource resource = new DirectoryResource(new File("."));
          assertNotNull(resource.getResourceAsStream("pom.xml"));
      }
test_case.class_method_signature: DirectoryResourceTest.testGetResourceAsStream2()
test_case.full_signature: @Test void testGetResourceAsStream2()
test_case.identifier: testGetResourceAsStream2
test_case.invocations: assertNotNull getResourceAsStream
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetResourceAsStream2()
focal_class.declarator: rootDirectory
focal_class.modifier: private
focal_class.original_string: private File rootDirectory;
focal_class.type: File
focal_class.var_name: rootDirectory
focal_class.file: resource/impl/src/main/java/cloud/piranha/resource/DirectoryResource.java
focal_class.identifier: DirectoryResource
focal_class.interfaces: implements Resource
focal_class.class_method_signature: DirectoryResource.DirectoryResource()
focal_class.full_signature: public  DirectoryResource()
focal_class.identifier: DirectoryResource
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  DirectoryResource()
focal_class.class_method_signature: DirectoryResource.DirectoryResource(String rootDirectory)
focal_class.full_signature: public  DirectoryResource(String rootDirectory)
focal_class.identifier: DirectoryResource
focal_class.modifiers: public
focal_class.parameters: (String rootDirectory)
focal_class.signature:  DirectoryResource(String rootDirectory)
focal_class.class_method_signature: DirectoryResource.DirectoryResource(File rootDirectory)
focal_class.full_signature: public  DirectoryResource(File rootDirectory)
focal_class.identifier: DirectoryResource
focal_class.modifiers: public
focal_class.parameters: (File rootDirectory)
focal_class.signature:  DirectoryResource(File rootDirectory)
focal_class.class_method_signature: DirectoryResource.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: DirectoryResource.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: DirectoryResource.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: DirectoryResource.getRootDirectory()
focal_class.full_signature: public File getRootDirectory()
focal_class.identifier: getRootDirectory
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: File
focal_class.signature: File getRootDirectory()
focal_class.class_method_signature: DirectoryResource.setRootDirectory(File rootDirectory)
focal_class.full_signature: public void setRootDirectory(File rootDirectory)
focal_class.identifier: setRootDirectory
focal_class.modifiers: public
focal_class.parameters: (File rootDirectory)
focal_class.return: void
focal_class.signature: void setRootDirectory(File rootDirectory)
focal_method.body: @Override
      public InputStream getResourceAsStream(String location) {
          InputStream result = null;
          File file = new File(rootDirectory, location);
  
          try {
              result = new FileInputStream(file);
          } catch (FileNotFoundException exception) {
          }
  
          return result;
      }
focal_method.class_method_signature: DirectoryResource.getResourceAsStream(String location)
focal_method.full_signature: @Override public InputStream getResourceAsStream(String location)
focal_method.identifier: getResourceAsStream
focal_method.modifiers: @Override public
focal_method.parameters: (String location)
focal_method.return: InputStream
focal_method.signature: InputStream getResourceAsStream(String location)