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

encodeFileContent() — spring-boot Function Reference

Architecture documentation for the encodeFileContent() function in JksSslStoreBundleTests.java from the spring-boot codebase.

Function java GradlePlugin DslExtensions calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  85d0aa6e_c0cb_cb5b_66d9_611455885afb["encodeFileContent()"]
  106170fa_ef15_31c9_57a8_dd38031fc718["whenLocationsAreBase64Encoded()"]
  106170fa_ef15_31c9_57a8_dd38031fc718 -->|calls| 85d0aa6e_c0cb_cb5b_66d9_611455885afb
  12690030_33ae_7a5c_1c16_cca9534d2ced["get()"]
  85d0aa6e_c0cb_cb5b_66d9_611455885afb -->|calls| 12690030_33ae_7a5c_1c16_cca9534d2ced
  5ea8357e_a689_1ed1_dd1d_d85bc3ac4c59["getResource()"]
  85d0aa6e_c0cb_cb5b_66d9_611455885afb -->|calls| 5ea8357e_a689_1ed1_dd1d_d85bc3ac4c59
  style 85d0aa6e_c0cb_cb5b_66d9_611455885afb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/ssl/jks/JksSslStoreBundleTests.java lines 204–208

	private String encodeFileContent(String location) throws IOException {
		Resource resource = ApplicationResourceLoader.get().getResource(location);
		byte[] bytes = Files.readAllBytes(resource.getFile().toPath());
		return "base64:" + Base64.getEncoder().encodeToString(bytes);
	}

Domain

Subdomains

Called By

  • whenLocationsAreBase64Encoded()

Frequently Asked Questions

What does encodeFileContent() do?
encodeFileContent() is a function in the spring-boot codebase.
What does encodeFileContent() call?
encodeFileContent() calls 2 function(s): get, getResource.
What calls encodeFileContent()?
encodeFileContent() is called by 1 function(s): whenLocationsAreBase64Encoded.

Analyze Your Own Codebase

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

Try Supermodel Free