|
Class: BufferStream (in Comanche)
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
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
instance creation
-
on: aString
-
accessing
-
contents
-
return contents, non-destructive
-
match: aString
-
-
next
-
return the next character
-
next: anInteger
-
return next anInteger characters
-
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.
-
peek
-
return the next character without consuming it
-
size
-
(comment from inherited method)
return the number of elements in the streamed collection.
-
upTo: aChar
-
return String up to aChar, but not including
-
upToAll: aString
-
return a string before the occurence of aString, if any
-
upToEnd
-
return buffer contents,
consume all my buffer
initialize-release
-
on: aString
-
-
reset
-
hack
printing
-
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
-
includes: aChar
-
answer whether buffer includes aChar within bounds
-
includesAll: aString
-
answer whether the buffer contains aString
-
isEmpty
-
(comment from inherited method)
return true, if the contents of the stream is empty
|