public static String concatAddressLines ( Address address , String delimiter ) { StringBuilder s = new StringBuilder ( 256 ) ; for ( int i = 0 , max = address . getMaxAddressLineIndex ( ) ; i <= max ; i ++ ) { if ( i > 0 ) { s . append ( delimiter ) ; } s . append ( address . getAddressLine ( i ) ) ; } return s . toString ( ) ; }
Get a single line address which uses the delimiter between the original lines .