InetAddressFormatter Class — spring-boot Architecture
Architecture documentation for the InetAddressFormatter class in InetAddressFormatter.java from the spring-boot codebase.
Entity Profile
Source Code
core/spring-boot/src/main/java/org/springframework/boot/convert/InetAddressFormatter.java lines 31–48
final class InetAddressFormatter implements Formatter<InetAddress> {
@Override
public String print(InetAddress object, Locale locale) {
return object.getHostAddress();
}
@Override
public InetAddress parse(String text, Locale locale) throws ParseException {
try {
return InetAddress.getByName(text);
}
catch (UnknownHostException ex) {
throw new IllegalStateException("Unknown host " + text, ex);
}
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free