Home / Function/ loadResource() — spring-boot Function Reference

loadResource() — spring-boot Function Reference

Architecture documentation for the loadResource() function in ApplicationPluginAction.java from the spring-boot codebase.

Function java GradlePlugin DslExtensions calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  c2ccd1b1_491e_e575_2a3b_d5ba95443154["loadResource()"]
  1df2c97a_af9b_d39c_9164_57f741d8cee9["configureCreateStartScripts()"]
  1df2c97a_af9b_d39c_9164_57f741d8cee9 -->|calls| c2ccd1b1_491e_e575_2a3b_d5ba95443154
  0ec9ff90_6d2d_0b84_baff_7e61c4dd65de["getResourceAsStream()"]
  c2ccd1b1_491e_e575_2a3b_d5ba95443154 -->|calls| 0ec9ff90_6d2d_0b84_baff_7e61c4dd65de
  style c2ccd1b1_491e_e575_2a3b_d5ba95443154 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/plugin/ApplicationPluginAction.java lines 114–127

	private String loadResource(String name) {
		try (InputStreamReader reader = new InputStreamReader(getResourceAsStream(name))) {
			char[] buffer = new char[4096];
			int read;
			StringWriter writer = new StringWriter();
			while ((read = reader.read(buffer)) > 0) {
				writer.write(buffer, 0, read);
			}
			return writer.toString();
		}
		catch (IOException ex) {
			throw new GradleException("Failed to read '" + name + "'", ex);
		}
	}

Domain

Subdomains

Calls

  • getResourceAsStream()

Frequently Asked Questions

What does loadResource() do?
loadResource() is a function in the spring-boot codebase.
What does loadResource() call?
loadResource() calls 1 function(s): getResourceAsStream.
What calls loadResource()?
loadResource() is called by 1 function(s): configureCreateStartScripts.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free