public InetAddress getInetAddress(String column) { return InetAddressType.instance.compose(data.get(column)); }
@Override public String toJSONString(ByteBuffer buffer, ProtocolVersion protocolVersion) { return '"' + getSerializer().deserialize(buffer).getHostAddress() + '"'; }
public ByteBuffer fromString(String source) throws MarshalException { // Return an empty ByteBuffer for an empty string. if (source.isEmpty()) return ByteBufferUtil.EMPTY_BYTE_BUFFER; InetAddress address; try { address = InetAddress.getByName(source); } catch (Exception e) { throw new MarshalException(String.format("Unable to make inet address from '%s'", source), e); } return decompose(address); }
@Override public Term fromJSONObject(Object parsed) throws MarshalException { try { return new Constants.Value(InetAddressType.instance.fromString((String) parsed)); } catch (ClassCastException exc) { throw new MarshalException(String.format( "Expected a string representation of an inet value, but got a %s: %s", parsed.getClass().getSimpleName(), parsed)); } }
public ByteBuffer fromString(String source) throws MarshalException { // Return an empty ByteBuffer for an empty string. if (source.isEmpty()) return ByteBufferUtil.EMPTY_BYTE_BUFFER; InetAddress address; try { address = InetAddress.getByName(source); } catch (Exception e) { throw new MarshalException(String.format("Unable to make inet address from '%s'", source), e); } return decompose(address); }
@Override public Term fromJSONObject(Object parsed) throws MarshalException { try { return new Constants.Value(InetAddressType.instance.fromString((String) parsed)); } catch (ClassCastException exc) { throw new MarshalException(String.format( "Expected a string representation of an inet value, but got a %s: %s", parsed.getClass().getSimpleName(), parsed)); } }
public ByteBuffer fromString(String source) throws MarshalException { // Return an empty ByteBuffer for an empty string. if (source.isEmpty()) return ByteBufferUtil.EMPTY_BYTE_BUFFER; InetAddress address; try { address = InetAddress.getByName(source); } catch (Exception e) { throw new MarshalException(String.format("Unable to make inet address from '%s'", source), e); } return decompose(address); }
@Override public String toJSONString(ByteBuffer buffer, ProtocolVersion protocolVersion) { return '"' + getSerializer().deserialize(buffer).getHostAddress() + '"'; }
public InetAddress getInetAddress(String column) { return InetAddressType.instance.compose(data.get(column)); }
@Override public Term fromJSONObject(Object parsed) throws MarshalException { try { return new Constants.Value(InetAddressType.instance.fromString((String) parsed)); } catch (ClassCastException exc) { throw new MarshalException(String.format( "Expected a string representation of an inet value, but got a %s: %s", parsed.getClass().getSimpleName(), parsed)); } }
public ByteBuffer fromString(String source) throws MarshalException { // Return an empty ByteBuffer for an empty string. if (source.isEmpty()) return ByteBufferUtil.EMPTY_BYTE_BUFFER; InetAddress address; try { address = InetAddress.getByName(source); } catch (Exception e) { throw new MarshalException(String.format("Unable to make inet address from '%s'", source), e); } return decompose(address); }
@Override public String toJSONString(ByteBuffer buffer, ProtocolVersion protocolVersion) { return '"' + getSerializer().deserialize(buffer).getHostAddress() + '"'; }
public InetAddress getInetAddress(String column) { return InetAddressType.instance.compose(data.get(column)); }
@Override public Term fromJSONObject(Object parsed) throws MarshalException { try { return new Constants.Value(InetAddressType.instance.fromString((String) parsed)); } catch (ClassCastException exc) { throw new MarshalException(String.format( "Expected a string representation of an inet value, but got a %s: %s", parsed.getClass().getSimpleName(), parsed)); } }
public ByteBuffer fromString(String source) throws MarshalException { // Return an empty ByteBuffer for an empty string. if (source.isEmpty()) return ByteBufferUtil.EMPTY_BYTE_BUFFER; InetAddress address; try { address = InetAddress.getByName(source); } catch (Exception e) { throw new MarshalException(String.format("unable to make inetaddress from '%s'", source), e); } return decompose(address); }
@Override public String toJSONString(ByteBuffer buffer, ProtocolVersion protocolVersion) { return '"' + getSerializer().deserialize(buffer).getHostAddress() + '"'; }
public InetAddress getInetAddress(String column) { return InetAddressType.instance.compose(data.get(column)); }