#include <ReadStream.h>
Inheritance diagram for Core::ReadStream:
Public Member Functions | |
ReadStream (SequenceableCollection *collection) | |
virtual String * | className (void) const |
Answer receiver class name. | |
virtual void | flush (void) |
virtual Object * | next (void) |
virtual void | nextPut (Object *object) |
virtual long | readPosition (void) |
virtual bool | isReadable (void) |
virtual bool | isWritable (void) |
|
Definition at line 28 of file ReadStream.cc. 00029 : InternalStream(collection) 00030 { 00031 /* Does nothing */ 00032 }
|
|
Answer receiver class name. Because there isn't any standard way to obtain class name this method comes to place. Every class should rewrite this method but many didn't (yet). Reimplemented from Core::InternalStream. Reimplemented in Core::ReadAppendStream. Definition at line 35 of file ReadStream.cc. 00036 { 00037 return new String("ReadStream"); 00038 }
|
|
Reimplemented from Core::Stream. Reimplemented in Core::ReadAppendStream. Definition at line 41 of file ReadStream.cc. References Core::Object::shouldNotImplement(). 00042 { 00043 shouldNotImplement(new String(__PRETTY_FUNCTION__)); 00044 }
|
|
Reimplemented from Core::Stream. Definition at line 65 of file ReadStream.cc. 00066 { 00067 return true; 00068 }
|
|
Reimplemented from Core::Stream. Reimplemented in Core::ReadAppendStream. Definition at line 70 of file ReadStream.cc. 00071 { 00072 return false; 00073 }
|
|
Reimplemented from Core::PositionableStream. Definition at line 46 of file ReadStream.cc. References Core::PositionableStream::_position, Core::SequenceableCollection::at(), Core::PositionableStream::collection, nil, and Core::PositionableStream::read_limit. 00047 { 00048 if (_position >= read_limit) { 00049 return nil; 00050 } else 00051 return collection->at(_position++); 00052 }
|
|
Reimplemented from Core::Stream. Reimplemented in Core::ReadAppendStream. Definition at line 54 of file ReadStream.cc. References Core::Object::shouldNotImplement(). 00055 { 00056 shouldNotImplement(new String(__PRETTY_FUNCTION__)); 00057 }
|
|
Definition at line 59 of file ReadStream.cc. References Core::PositionableStream::_position. 00060 { 00061 return _position; 00062 }
|