156157158159160161162
public byte [] getIPv4Bytes(int fieldId) { return values[fieldId].asByteArray(); } public InetAddress getIPv6(int fieldId) { throw new InvalidCastException("IPv6 is unsupported yet"); }
160161162163164165166
public InetAddress getIPv6(int fieldId) { throw new InvalidCastException("IPv6 is unsupported yet"); } public byte[] getIPv6Bytes(int fieldId) { throw new InvalidCastException("IPv6 is unsupported yet"); }
149150151152153154155
public byte[] getIPv4Bytes(int fieldId) { return values[fieldId].asByteArray(); } public InetAddress getIPv6(int fieldId) { throw new InvalidCastException("IPv6 is unsupported yet"); }
153154155156157158159
196197198199200201202
return get(fieldId).asByteArray(); } @Override public InetAddress getIPv6(int fieldId) { throw new InvalidCastException("IPv6 is unsupported yet"); }
201202203204205206207
throw new InvalidCastException("IPv6 is unsupported yet"); } @Override public byte[] getIPv6Bytes(int fieldId) { throw new InvalidCastException("IPv6 is unsupported yet"); }
44454647484950
public boolean isNull() { return false; } public boolean asBool() { throw new InvalidCastException(type + " cannot be casted to BOOL type"); }
48495051525354
public boolean asBool() { throw new InvalidCastException(type + " cannot be casted to BOOL type"); } public byte asByte() { throw new InvalidCastException(type + " cannot be casted to BYTE type"); }
52535455565758
public byte asByte() { throw new InvalidCastException(type + " cannot be casted to BYTE type"); } public char asChar() { throw new InvalidCastException(type + " cannot be casted to CHAR type"); }
56575859606162
public char asChar() { throw new InvalidCastException(type + " cannot be casted to CHAR type"); } public short asInt2() { throw new InvalidCastException(type + " cannot be casted to SHORT type"); }