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