mirror of
https://github.com/corda/corda.git
synced 2025-06-13 12:48:18 +00:00
fix various ObjectOutputStream/ObjectInputStream bugs
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user