List of usage examples for com.google.common.net HostSpecifier from
public static HostSpecifier from(String specifier) throws ParseException
From source file:com.bennavetta.aeneas.zookeeper.impl.HostSpecifierDeserializer.java
@Override public HostSpecifier deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { try {//from w ww . j av a2 s .c o m return HostSpecifier.from(jp.getValueAsString()); } catch (ParseException e) { throw new JsonParseException("Invalid host specifier", jp.getCurrentLocation(), e); } }