mirror of
https://github.com/corda/corda.git
synced 2025-01-22 04:18:31 +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);
|
this(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int size() {
|
||||||
|
return position;
|
||||||
|
}
|
||||||
|
|
||||||
public void write(int c) {
|
public void write(int c) {
|
||||||
if (buffer == null) {
|
if (buffer == null) {
|
||||||
buffer = new byte[BufferSize];
|
buffer = new byte[BufferSize];
|
||||||
|
Loading…
Reference in New Issue
Block a user