# another product.
class FilterIStream
-special IStream
+ super IStream
# Filter readed elements
- readable var _stream: nullable IStream
+ readable var _stream: nullable IStream = null
redef fun eof: Bool
do
end
class FilterOStream
-special OStream
+ super OStream
# Filter outputed elements
- readable var _stream: nullable OStream
+ readable var _stream: nullable OStream = null
# Can the stream be used to write
redef fun is_writable: Bool
end
class StreamCat
-special FilterIStream
+ super FilterIStream
var _streams: Iterator[IStream]
redef fun eof: Bool
end
class StreamDemux
-special FilterOStream
+ super FilterOStream
var _streams: Array[OStream]
redef fun is_writable: Bool
end
end
- redef fun write(s: String)
+ redef fun write(s: Text)
do
for i in _streams
do