mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
add ByteArrayOutputStream.size()
This commit is contained in:
@ -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];
|
||||
|
Reference in New Issue
Block a user