write

Writes a chunk of data to the stream.

Writes data to the stream, beginning at the current position. The stream may be buffered, so use flush or close to be certain that any buffered changes have been applied. Throws a SUPStreamNotOpenException if the stream is not open for writing. Throws a SUPWriteAppendOnlyException if the platform only supports appending to the end of a value and the current stream position precedes the end of the value. Throws a SUPWriteOverLengthException if the platform requires the length to be predetermined before writing and this write would exceed the predetermined length.

Syntax

- (void)write :(SUPBinary)data;

Parameters

Examples