* @author Claudio D. Gasparini
*/
public final class IpAddressUtil {
- private static final int ZERO_BYTE = 1;
-
private IpAddressUtil() {
throw new UnsupportedOperationException();
}
body.writeByte(Ipv6Util.IPV6_BITS_LENGTH);
body.writeBytes(Ipv6Util.bytesForAddress(address.getIpv6Address()));
} else {
- body.writeZero(ZERO_BYTE);
+ body.writeByte(0);
}
return body;
}
} else if (address.getIpv6Address() != null) {
body.writeBytes(Ipv6Util.bytesForAddress(address.getIpv6Address()));
} else {
- body.writeZero(ZERO_BYTE);
+ body.writeByte(0);
}
return body;
}