441 |
{ |
{ |
442 |
IOToolkit.copyStream(in, out); |
IOToolkit.copyStream(in, out); |
443 |
} |
} |
444 |
|
|
445 |
|
public String createHrefString(String url, String content) |
446 |
|
{ |
447 |
|
return createAnchorString(url, content, null); |
448 |
|
} |
449 |
|
|
450 |
|
public String createHrefString(String url, String content, String title) |
451 |
|
{ |
452 |
|
StringBuffer result = new StringBuffer(); |
453 |
|
result.append("<a href=\""); |
454 |
|
result.append(url); |
455 |
|
result.append("\""); |
456 |
|
if (null != title) { |
457 |
|
result.append(" title=\""); |
458 |
|
result.append(title); |
459 |
|
result.append("\""); |
460 |
|
} |
461 |
|
result.append(">"); |
462 |
|
result.append(content); |
463 |
|
result.append("</a>"); |
464 |
|
return result.toString(); |
465 |
|
} |
466 |
} |
} |