Handbook
Glossary
input-stream
Factor handbook
»
Input and output
»
Streams
»
Default input and output streams
Prev:
Motivation for default streams
Next:
read1 ( -- elt )
Vocabulary
io
Variable description
Holds an input stream for various implicit stream operations. Rebound using
with-input-stream
and
with-input-stream*
.
Variable value
Current value in global namespace:
T{
decoder
f
~input-port~
utf8
f
}
Definition
USING:
curses.listener
io.encodings
io.ports
io.streams.byte-array
io.streams.c
io.streams.counting
io.streams.duplex
io.streams.limited
io.streams.memory
io.streams.null
io.streams.peek
io.streams.random
io.streams.string
io.streams.tee
io.streams.throwing
io.streams.zeros
readline-listener.private
ui.tools.listener
;
IN:
io
MIXIN:
input-stream
INSTANCE:
decoder
input-stream
INSTANCE:
memory-stream
input-stream
INSTANCE:
byte-reader
input-stream
INSTANCE:
c-reader
input-stream
INSTANCE:
string-reader
input-stream
INSTANCE:
null-reader
input-stream
INSTANCE:
input-port
input-stream
INSTANCE:
duplex-stream
input-stream
INSTANCE:
interactor
input-stream
INSTANCE:
limited-stream
input-stream
INSTANCE:
throws-on-eof-stream
input-stream
INSTANCE:
curses-listener-stream
input-stream
INSTANCE:
peek-stream
input-stream
INSTANCE:
counting-stream
input-stream
INSTANCE:
random-stream
input-stream
INSTANCE:
tee-stream
input-stream
INSTANCE:
zero-stream
input-stream
INSTANCE:
readline-reader
input-stream
Methods
USING:
io
io.private
;
M:
input-stream
stream-contents*
stream-contents-by-length-or-block
;
inline
USING:
io
kernel
;
M:
input-stream
stream-length
drop
f
;
inline
USING:
io
;
M:
input-stream
stream-read-partial-unsafe
stream-read-unsafe
;
inline
USING:
io
io.private
kernel
;
M:
input-stream
stream-read-unsafe
rot
0
read-loop
;
inline
USING:
io
io.private
;
M:
input-stream
stream-read-until
read-until-loop
;
inline
USING:
io
kernel
;
M:
input-stream
stream-readln
"\n"
swap
stream-read-until
drop
;
inline
USING:
io
kernel
;
M:
input-stream
stream-seekable?
drop
f
;
inline