factor/library/io/duplex-stream.facts

14 lines
877 B
Plaintext
Raw Normal View History

2006-01-16 02:48:15 -05:00
USING: help io ;
2006-08-17 23:08:04 -04:00
HELP: duplex-stream
2006-08-01 17:35:00 -04:00
{ $class-description "A bidirectional stream delegating to a pair of streams, sending input to one delegate and output to another." } ;
2006-01-16 02:48:15 -05:00
2006-08-17 23:08:04 -04:00
HELP: <duplex-stream>
2006-08-01 17:35:00 -04:00
{ $values { "in" "an input stream" } { "out" "an output stream" } { "stream" " a duplex stream" } }
2006-01-16 02:48:15 -05:00
{ $description "Creates a duplex stream. Writing to a duplex stream will write to " { $snippet "out" } ", and reading from a duplex stream will read from " { $snippet "in" } ". Closing a duplex stream closes both the input and output streams." } ;
2006-08-01 17:35:00 -04:00
2006-08-17 23:08:04 -04:00
HELP: check-closed
2006-08-01 17:35:00 -04:00
{ $values { "stream" "a duplex stream" } }
{ $description "Throws a " { $link check-closed } " error if the stream has already been closed." }
{ $error-description "This error is thrown when performing an I/O operation on a " { $link duplex-stream } " which has been closed with " { $link stream-close } "." } ;