* sorry,previous version didn't compile

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5575 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
f1ori 16 years ago
parent 76cdc59789
commit 7936e58fe7

@ -188,7 +188,11 @@ public final class ByteBuffer extends OutputStream {
}
public ByteBuffer append(final String s) {
return append(s.getBytes("UTF-8"));
try {
return append(s.getBytes("UTF-8"));
} catch (UnsupportedEncodingException e) {
return append(s.getBytes());
}
}
public ByteBuffer append(final String s, final String charset) throws UnsupportedEncodingException {

Loading…
Cancel
Save