/** * A static factory method. This method validates the arguments by {@link * ByteArrays#validateBounds(byte[], int, int)}, which may throw exceptions undocumented here. * * @param rawData rawData * @param offset offset * @param length length * @return a new UnknownIpV6RoutingData object. * @throws IllegalRawDataException if parsing the raw data fails. */ public static UnknownIpV6RoutingData newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException { ByteArrays.validateBounds(rawData, offset, length); return new UnknownIpV6RoutingData(rawData, offset, length); }
@Override public IpV6RoutingData newInstance(byte[] rawData, int offset, int length) { try { return UnknownIpV6RoutingData.newInstance(rawData, offset, length); } catch (IllegalRawDataException e) { return IllegalIpV6RoutingData.newInstance(rawData, offset, length); } }
@Override public IpV6RoutingData newInstance(byte[] rawData, int offset, int length) { try { return UnknownIpV6RoutingData.newInstance(rawData, offset, length); } catch (IllegalRawDataException e) { return IllegalIpV6RoutingData.newInstance(rawData, offset, length); } }
/** * A static factory method. This method validates the arguments by {@link * ByteArrays#validateBounds(byte[], int, int)}, which may throw exceptions undocumented here. * * @param rawData rawData * @param offset offset * @param length length * @return a new UnknownIpV6RoutingData object. * @throws IllegalRawDataException if parsing the raw data fails. */ public static UnknownIpV6RoutingData newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException { ByteArrays.validateBounds(rawData, offset, length); return new UnknownIpV6RoutingData(rawData, offset, length); }