eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Comanche::BufferStream':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: BufferStream (in Comanche)


Inheritance:

   Object
   |
   +--Stream
      |
      +--Comanche::BufferStream

Package:
stx:goodies/webServer/comanche/swiki
Category:
Comanche-Kom-Kernel
Version:
rev: 1.22 date: 2003/08/29 17:04:23
user: cg
file: BufferStream.st directory: goodies/webServer/comanche/swiki
module: stx stc-classLibrary: swiki

Description:


Kom48 (Comanche beta 4.8)
bolot 4/2/2001 18:43

BufferStream

Comment in Com46:
- is-a ReadWriteStream on a String
- like a queue
  removeNext:/nextPutAll: protocol


Class protocol:

instance creation
o  on: aString


Instance protocol:

accessing
o  contents
return contents, non-destructive

o  match: aString

o  next
return the next character

o  next: anInteger
return next anInteger characters

o  nextPutAll: aString
(comment from inherited method)
put all elements of the argument, aCollection onto the receiver.
Answer the receiver.
This is only allowed, if the receiver supports writing.

o  peek
return the next character without consuming it

o  size
(comment from inherited method)
return the number of elements in the streamed collection.

o  upTo: aChar
return String up to aChar, but not including

o  upToAll: aString
return a string before the occurence of aString, if any

o  upToEnd
return buffer contents,
consume all my buffer

initialize-release
o  on: aString

o  reset
hack

printing
o  printOn: aStream
(comment from inherited method)
append a user printed representation of the receiver to aStream.
The format is suitable for a human - not meant to be read back.

The default here is to output the receiver's class name.
BUT: this method is heavily redefined for objects which
can print prettier.

testing
o  includes: aChar
answer whether buffer includes aChar within bounds

o  includesAll: aString
answer whether the buffer contains aString

o  isEmpty
(comment from inherited method)
return true, if the contents of the stream is empty



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 16:57:28 GMT