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