Base64ProtocolResolver Class — spring-boot Architecture
Architecture documentation for the Base64ProtocolResolver class in Base64ProtocolResolver.java from the spring-boot codebase.
Entity Profile
Source Code
core/spring-boot/src/main/java/org/springframework/boot/io/Base64ProtocolResolver.java lines 33–50
class Base64ProtocolResolver implements ProtocolResolver {
private static final String BASE64_PREFIX = "base64:";
@Override
public @Nullable Resource resolve(String location, ResourceLoader resourceLoader) {
if (location.startsWith(BASE64_PREFIX)) {
String value = location.substring(BASE64_PREFIX.length());
return new ByteArrayResource(decode(value));
}
return null;
}
private static byte[] decode(String location) {
return Base64.getDecoder().decode(location);
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free