Class MemoryOutputStream

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

Inherits from

Constructors

Name Description
this

Properties

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

Methods

Name Description
reset Resets the stream to its initial state containing no data.
reserve Reserves space for data - useful for optimization.
write
flush
finalize
write
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.