fix various ObjectOutputStream/ObjectInputStream bugs

This commit is contained in:
Anonymous
2011-07-01 08:43:43 -06:00
committed by Joel Dice
parent 9700b7def1
commit 794a45cb79
11 changed files with 63 additions and 26 deletions

View File

@ -98,6 +98,10 @@ public class ByteArrayOutputStream extends OutputStream {
return array;
}
public String toString(String encoding) throws UnsupportedEncodingException {
return new String(toByteArray(), encoding);
}
private static class Cell {
public byte[] array;
public int offset;