ReverseStringProtocolResolver Class — spring-boot Architecture
Architecture documentation for the ReverseStringProtocolResolver class in ReverseStringProtocolResolver.java from the spring-boot codebase.
Entity Profile
Source Code
core/spring-boot/src/test/java/org/springframework/boot/io/ReverseStringProtocolResolver.java lines 33–49
class ReverseStringProtocolResolver implements ProtocolResolver {
private static final String PREFIX = "reverse:";
@Override
public @Nullable Resource resolve(String location, ResourceLoader resourceLoader) {
if (!location.startsWith(PREFIX)) {
return null;
}
return new ByteArrayResource(reverse(location.substring(PREFIX.length())));
}
private byte[] reverse(String substring) {
return new StringBuilder(substring).reverse().toString().getBytes(StandardCharsets.UTF_8);
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free