269
264
ArrayList< String > types = new ArrayList< String >();
271
266
switch( addresses.get( a ).getType() ) {
273
268
types.add( "HOME" ); break;
275
270
types.add( "WORK" ); break;
279
272
out.append( fold( "LABEL" +
280
273
( types.size() > 0? ";TYPE=" + join( types, "," ) : "" ) +
281
274
":" + escape( addresses.get( a ).getAddress() ) ) + "\n" );
292
279
out.append( "END:VCARD\n" );
307
283
_ostream.write( out.toString().getBytes() );