Code example for ParsePosition

Methods: setIndex

0
 
	@Override 
	public Object parseObject(String source, ParsePosition pos) {
		if (source.indexOf(".") > -1) {
			InternetAddress amount = new InternetAddress(source);
			pos.setIndex(amount.getInternetAddress().length());
			return amount;
		}  
		return source;
	} 
 
}