io vocabulary
Factor handbook > Vocabulary index


Documentation
Streams

Meta-data
Authors:Slava Pestov


Words

Tuple classes
ClassSuperclassSlots
bad-seek-type tupletype
invalid-read-buffer tuplebuf stream


Singleton classes
seek-absolute
seek-end
seek-relative


Mixin classes
input-stream
output-stream


Generic words
WordStack effect
stream-contents*( stream -- seq )
stream-element-type( stream -- type )
stream-flush( stream -- )
stream-length( stream -- n/f )
stream-nl( stream -- )
stream-read-partial-unsafe( n buf stream -- count )
stream-read-unsafe( n buf stream -- count )
stream-read-until( seps stream -- seq sep/f )
stream-read1( stream -- elt )
stream-readln( stream -- str/f )
stream-seek( n seek-type stream -- )
stream-seekable?( stream -- ? )
stream-tell( stream -- n )
stream-write( data stream -- )
stream-write1( elt stream -- )


Symbol words
+byte+
+character+
error-stream


Ordinary words
WordStack effect
(each-stream-block)( ... stream quot: ( ... block -- ... ) block-size -- ... )
(each-stream-block-slice)( ... stream quot: ( ... block-slice -- ... ) block-size -- ... )
(stream-contents-by-block)( stream -- seq )
(stream-contents-by-element)( stream -- seq )
(stream-contents-by-length)( stream len -- seq )
(stream-contents-by-length-or-block)( stream -- seq )
bad-seek-type( type -- * )
bl( -- )
contents( -- seq )
each-block( ... quot: ( ... block -- ... ) -- ... )
each-block-size( -- value )
each-block-slice( ... quot: ( ... block -- ... ) -- ... )
each-line( ... quot: ( ... line -- ... ) -- ... )
each-morsel( ..a handler: ( ..a data -- ..b ) reader: ( ..b -- ..a data ) -- ..a )
each-stream-block( ... stream quot: ( ... block -- ... ) -- ... )
each-stream-block-slice( ... stream quot: ( ... block-slice -- ... ) -- ... )
each-stream-line( ... stream quot: ( ... line -- ... ) -- ... )
flush( -- )
invalid-read-buffer( buf stream -- * )
lines( -- seq )
nl( -- )
print( str -- )
read( n -- seq )
read-into( buf -- buf-slice more? )
read-partial( n -- seq )
read-partial-into( buf -- buf-slice more? )
read-until( seps -- seq sep/f )
read1( -- elt )
readln( -- str/f )
seek-input( n seek-type -- )
seek-output( n seek-type -- )
stream-bl( stream -- )
stream-contents( stream -- seq )
stream-copy( in out -- )
stream-copy*( in out -- )
stream-lines( stream -- seq )
stream-print( str stream -- )
stream-read( n stream -- seq/f )
stream-read-into( buf stream -- buf-slice more? )
stream-read-partial( n stream -- seq/f )
stream-read-partial-into( buf stream -- buf-slice more? )
tell-input( -- n )
tell-output( -- n )
with-error-stream( stream quot -- )
with-error-stream*( stream quot -- )
with-error>output( quot -- )
with-input-output+error-streams( input output+error quot -- )
with-input-output+error-streams*( input output+error quot -- )
with-input-stream( stream quot -- )
with-input-stream*( stream quot -- )
with-output+error-stream( stream quot -- )
with-output+error-stream*( stream quot -- )
with-output-stream( stream quot -- )
with-output-stream*( stream quot -- )
with-output>error( quot -- )
with-streams( input output quot -- )
with-streams*( input output quot -- )
write( seq -- )
write1( elt -- )


Class predicate words
WordStack effect
bad-seek-type?( object -- ? )
input-stream?( object -- ? )
invalid-read-buffer?( object -- ? )
output-stream?( object -- ? )
seek-absolute?( object -- ? )
seek-end?( object -- ? )
seek-relative?( object -- ? )


Files


Children from resource:core
VocabularySummary
io.backendHooks for native I/O implementation
io.binaryUtilities for reading and writing little and big endian data
io.encodingsCommon support for ASCII, UTF8 and UTF16 character encodings
io.filesReading and writing files
io.pathnamesPathname manipulation
io.streamsio.streams vocabulary
io.testio.test vocabulary


Children from resource:basis
VocabularySummary
io.backendHooks for native I/O implementation
io.buffersHigh-performance pinned FIFO buffers
io.crlfWriting and reading until \r\n
io.directoriesListing directories, moving, copying and deleting files
io.encodingsCommon support for ASCII, UTF8 and UTF16 character encodings
io.filesReading and writing files
io.launcherLaunching operating system processes
io.mmapMemory-mapped files
io.monitorsFile alteration monitoring
io.pipesPipes for inter-process communication
io.poolsAbstract connection pooling
io.portsLow-level implementation support for native I/O
io.serversMulti-threaded TCP/IP servers
io.socketsClient and server TCP/IP sockets, UDP/IP datagram sockets
io.standard-pathsio.standard-paths vocabulary
io.streamsio.streams vocabulary
io.stylesStyles which can be used to mark up text sent to an output stream
io.threadio.thread vocabulary
io.timeoutsLow-level support for setting timeouts on I/O operations


Children from resource:extra
VocabularySummary
io.binaryUtilities for reading and writing little and big endian data
io.encodingsCommon support for ASCII, UTF8 and UTF16 character encodings
io.filesReading and writing files
io.randomio.random vocabulary
io.serialSerial port library
io.streamsio.streams vocabulary


Children
VocabularySummary
io.privateio.private vocabulary