Class MemoryOutputStream

OutputStream that collects the written data in memory and allows to query it as a byte array.

Inherits from

Properties

Property name Type Description
data - An array with all data written to the stream so far.

Methods

Method name Description
this
reserve Reserves space for data - useful for optimization.
write Writes an array of bytes to the stream.
flush Flushes the stream and makes sure that all data is being written to the output device.
finalize Flushes and finalizes the stream.
write Pipes an InputStream directly into this OutputStream.
write [inherited] Writes an array of chars to the stream.
put [inherited] These methods provide an output range interface.

Authors

Sönke Ludwig

Copyright

© 2012 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.