Documentation Set for Swarm 2.2
Prev | Reference II. Collections Library | Next

# OutputStream

## Name

OutputStream -- Stream of output bytes.

## Description

The OutputStream type currently supports the writing of types to a Lisp-like format. It is a placeholder for more general stream types. A stream is a collection that supports only sequential addition of members (an output stream) or sequential removal of members (an input stream). With the exception of the -catC: method, all messages write to stream in Lisp archiver format.

## Protocols adopted by OutputStream

Create Drop CREATABLE

## Methods

### Phase: Creating

- - setExprFlag: (BOOL)exprFlag

- - setFileStream: (FILE *)fileStream

- + create: (id <Zone>)aZone setFileStream: (FILE *)fileStream

### Phase: Using

- - (void)catNil

- - (void)catUnsignedPair: (unsigned)a : (unsigned)b

- - (void)catEndMakeClass

- - (void)catStartMakeClass: (const char *)className

- - (void)catEndMakeInstance

- - (void)catStartMakeInstance: (const char *)typeName

- - (void)catEndParse

- - (void)catStartParse

- - (void)catEndQuotedList

- - (void)catStartQuotedList

- - (void)catEndList

- - (void)catStartList

- - (void)catEndCons

- - (void)catStartCons

- - (void)catEndFunction

- - (void)catStartFunction: (const char *)functionName

- - (void)catClass: (Class)class

- - (void)catType: (const char *)type

- - (void)catEndArray

- - (void)catArrayRank: (unsigned)rank

- - (void)catSeparator

- - (void)catString: (const char *)str

- - (void)catSymbol: (const char *)symbol

- - (void)catKeyword: (const char *)keyword

- - (void)catEndExpr

- - (void)catStartExpr

- - (void)catLiteral: (const char *)str

- - (void)catPointer: (const void *)ptr

- - (void)catUnsignedLongLong: (unsigned long long)ulnglng

- - (void)catLongLong: (long long)lnglng

- - (void)catUnsignedLong: (unsigned long)ulng

- - (void)catLong: (long)lng

- - (void)catUnsignedShort: (unsigned short)usht

- - (void)catShort: (short)sht

- - (void)catUnsigned: (unsigned)un
  Writes an unsigned to stream in Lisp archiver format

- - (void)catInt: (int)i
  Writes an integer to stream in Lisp archiver format

- - (void)catLongDouble: (long double)dbl
  Writes a double to stream in Lisp archiver format

- - (void)catDouble: (double)dbl
  Writes a double to stream in Lisp archiver format

- - (void)catFloat: (float)flt
  Writes a float to stream in Lisp archiver format

- - (void)catChar: (char)ch
  Writes a character to stream in Lisp archiver format

- - (void)catBoolean: (BOOL)bool
  Writes a boolean to stream in Lisp archiver format

- - (void)catC: (const char *)cstring
  Writes character string to stream

- - getExpr

- - (FILE *)getFileStream

Prev | Home | Next
OrderedSet | Up | Permutation