mirror of
https://github.com/corda/corda.git
synced 2025-01-21 12:05:08 +00:00
add ByteArrayOutputStream.size()
This commit is contained in:
parent
6ac124f2fb
commit
74235ea33c
@ -14,6 +14,10 @@ public class ByteArrayOutputStream extends OutputStream {
|
||||
this(0);
|
||||
}
|
||||
|
||||
public int size() {
|
||||
return position;
|
||||
}
|
||||
|
||||
public void write(int c) {
|
||||
if (buffer == null) {
|
||||
buffer = new byte[BufferSize];
|
||||
|
Loading…
Reference in New Issue
Block a user