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