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

o  peek
return the next character without consuming it

o  size

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

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

o  includesAll: aString
answer whether the buffer contains aString

o  isEmpty



ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Fri, 20 Jul 2018 06:53:44 GMT