writeString() — spring-boot Function Reference
Architecture documentation for the writeString() function in JsonValueWriter.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 01198923_ed9a_1651_42d0_fd2437c3ef41["writeString()"] 50d7a4bd_f5f4_c5d4_8463_aa8f63ebe0a2["write()"] 50d7a4bd_f5f4_c5d4_8463_aa8f63ebe0a2 -->|calls| 01198923_ed9a_1651_42d0_fd2437c3ef41 38f66200_2257_94aa_9c43_e9a2f205a1c4["writePair()"] 38f66200_2257_94aa_9c43_e9a2f205a1c4 -->|calls| 01198923_ed9a_1651_42d0_fd2437c3ef41 fa3e1f17_48fd_2ad5_b4cd_873b931f4dba["append()"] 01198923_ed9a_1651_42d0_fd2437c3ef41 -->|calls| fa3e1f17_48fd_2ad5_b4cd_873b931f4dba style 01198923_ed9a_1651_42d0_fd2437c3ef41 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/json/JsonValueWriter.java lines 263–293
private void writeString(Object value) {
try {
this.out.append('"');
String string = value.toString();
for (int i = 0; i < string.length(); i++) {
char ch = string.charAt(i);
switch (ch) {
case '"' -> this.out.append("\\\"");
case '\\' -> this.out.append("\\\\");
case '\b' -> this.out.append("\\b");
case '\f' -> this.out.append("\\f");
case '\n' -> this.out.append("\\n");
case '\r' -> this.out.append("\\r");
case '\t' -> this.out.append("\\t");
default -> {
if (Character.isISOControl(ch)) {
this.out.append("\\u");
this.out.append(String.format("%04X", (int) ch));
}
else {
this.out.append(ch);
}
}
}
}
this.out.append('"');
}
catch (IOException ex) {
throw new UncheckedIOException(ex);
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does writeString() do?
writeString() is a function in the spring-boot codebase.
What does writeString() call?
writeString() calls 1 function(s): append.
What calls writeString()?
writeString() is called by 2 function(s): write, writePair.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free