Code example for InetAddress

Methods: getHostAddress

0
	public final InetAddress addr;
	 
	@Override 
	public SimpleFieldSet toFieldSet() { 
		SimpleFieldSet fs = super.toFieldSet();
		fs.putOverwrite("Address", addr.getHostAddress());
		return fs;
	} 
	 
	public InetAddressAddressTrackerItem(SimpleFieldSet fs) throws FSParseException {
		super(fs);
		try { 
			addr = InetAddress.getByName(fs.getString("Address"));
		} catch (UnknownHostException e) {
			throw (FSParseException)new FSParseException("Unknown domain name in Address: "+e).initCause(e);
		} 
	} 
 
} 
Contextual code suggestions in your IDE  Get Codota for Java