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); }
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); }
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); }
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); }
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); }