Class ReusableByteArrayInputStream

java.lang.Object
java.io.InputStream
java.io.ByteArrayInputStream
org.mule.munit.tools.util.ReusableByteArrayInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class ReusableByteArrayInputStream extends ByteArrayInputStream
This is a special implementation of the ByteArrayInputStream. Upon creation the ByteArrayInputStream is marked at the beginning of the array. If the stream is fully consumed or if it is closed then it is automatically resetted.
Since:
2.0.0
Author:
Mulesoft Inc.