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

getBytes() — spring-boot Function Reference

Architecture documentation for the getBytes() function in ConfigTreePropertySource.java from the spring-boot codebase.

Function java GradlePlugin RunTasks calls 2 called by 2

Entity Profile

Dependency Diagram

graph TD
  33022df3_01e1_ec3a_1240_47ba7f80c214["getBytes()"]
  87f5befc_85d2_33e7_9265_9b499c302abf["toString()"]
  87f5befc_85d2_33e7_9265_9b499c302abf -->|calls| 33022df3_01e1_ec3a_1240_47ba7f80c214
  6c157ff4_f6d4_bcc2_68ce_ac0ddcab92a3["getInputStream()"]
  6c157ff4_f6d4_bcc2_68ce_ac0ddcab92a3 -->|calls| 33022df3_01e1_ec3a_1240_47ba7f80c214
  d19cc4c7_067c_5c76_a12a_90e19fb30f12["assertStillExists()"]
  33022df3_01e1_ec3a_1240_47ba7f80c214 -->|calls| d19cc4c7_067c_5c76_a12a_90e19fb30f12
  6c157ff4_f6d4_bcc2_68ce_ac0ddcab92a3["getInputStream()"]
  33022df3_01e1_ec3a_1240_47ba7f80c214 -->|calls| 6c157ff4_f6d4_bcc2_68ce_ac0ddcab92a3
  style 33022df3_01e1_ec3a_1240_47ba7f80c214 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/env/ConfigTreePropertySource.java lines 346–372

		private byte[] getBytes() {
			try {
				if (!this.cacheContent) {
					assertStillExists();
					return FileCopyUtils.copyToByteArray(this.resource.getInputStream());
				}
				byte[] content = this.content;
				if (content == null) {
					assertStillExists();
					this.resourceLock.lock();
					try {
						content = this.content;
						if (content == null) {
							content = FileCopyUtils.copyToByteArray(this.resource.getInputStream());
							this.content = content;
						}
					}
					finally {
						this.resourceLock.unlock();
					}
				}
				return content;
			}
			catch (IOException ex) {
				throw new IllegalStateException(ex);
			}
		}

Domain

Subdomains

Calls

Frequently Asked Questions

What does getBytes() do?
getBytes() is a function in the spring-boot codebase.
What does getBytes() call?
getBytes() calls 2 function(s): assertStillExists, getInputStream.
What calls getBytes()?
getBytes() is called by 2 function(s): getInputStream, toString.

Analyze Your Own Codebase

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

Try Supermodel Free