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

writeTo() — spring-boot Function Reference

Architecture documentation for the writeTo() function in InspectedContent.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  69fc8331_238d_8a0e_1390_ccc4f9a49ea6["writeTo()"]
  c11580dd_aefa_2785_5004_3738b7d99bd8["writeTo()"]
  c11580dd_aefa_2785_5004_3738b7d99bd8 -->|calls| 69fc8331_238d_8a0e_1390_ccc4f9a49ea6
  3b6ae9dd_e8d0_26b0_92a2_e76e8c994dbc["writeTo()"]
  3b6ae9dd_e8d0_26b0_92a2_e76e8c994dbc -->|calls| 69fc8331_238d_8a0e_1390_ccc4f9a49ea6
  style 69fc8331_238d_8a0e_1390_ccc4f9a49ea6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/io/InspectedContent.java lines 58–70

	@Override
	public void writeTo(OutputStream outputStream) throws IOException {
		if (this.content instanceof byte[] bytes) {
			FileCopyUtils.copy(bytes, outputStream);
		}
		else if (this.content instanceof File file) {
			InputStream inputStream = new FileInputStream(file);
			FileCopyUtils.copy(inputStream, outputStream);
		}
		else {
			throw new IllegalStateException("Unknown content type");
		}
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does writeTo() do?
writeTo() is a function in the spring-boot codebase.
What calls writeTo()?
writeTo() is called by 2 function(s): writeTo, writeTo.

Analyze Your Own Codebase

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

Try Supermodel Free