Skip to content
This repository was archived by the owner on Jan 16, 2019. It is now read-only.

Memory stream

mikey179 edited this page Feb 21, 2012 · 4 revisions

Memory streams

Sometimes it is helpful if one can read or write data into memory. For such purposes the net\stubbles\streams\memory\MemoryInputStream and net\stubbles\streams\memory\MemoryOutputStream exist. While the memory input stream class expects the content to be read from as string parameter for its constructor, the memory output stream does not expect a value on construction, but offers an additional method getBuffer() which returns all data written to this stream so far.

The memory input stream is a seekable stream.

Clone this wiki locally