This method of the IntArrayOutputStream Class creates a deep copy of the output stream.
public IntArrayOutputStream copy();
Returns the copy of the output stream.