mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 15:37:52 +01:00
Add method reset()
This commit is contained in:
parent
527f3d2bc7
commit
a5eee6aa7d
@ -155,4 +155,12 @@ class WasmOutputStream extends FilterOutputStream {
|
|||||||
ByteArrayOutputStream baos = (ByteArrayOutputStream)out;
|
ByteArrayOutputStream baos = (ByteArrayOutputStream)out;
|
||||||
return baos.size();
|
return baos.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reset the stream. Work only for in memory stream.
|
||||||
|
*/
|
||||||
|
void reset() {
|
||||||
|
ByteArrayOutputStream baos = (ByteArrayOutputStream)out;
|
||||||
|
baos.reset();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user