mirror of
https://github.com/corda/corda.git
synced 2025-01-09 14:33:30 +00:00
implement ByteArrayOutputStream.reset
This commit is contained in:
parent
93a96f3833
commit
a16a00a7fb
@ -24,6 +24,13 @@ public class ByteArrayOutputStream extends OutputStream {
|
|||||||
this(0);
|
this(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void reset() {
|
||||||
|
chain = null;
|
||||||
|
length = 0;
|
||||||
|
buffer = null;
|
||||||
|
position = 0;
|
||||||
|
}
|
||||||
|
|
||||||
public int size() {
|
public int size() {
|
||||||
return length;
|
return length;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user