@ciao-lang/ts-ciao-interface
Version:
Simple Ciao interface for node.
116 lines • 25.9 kB
HTML
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><meta name="theme-color" content="#273f79"/><link rel="stylesheet" href="lpdoc.css" type="text/css"/><script type="text/javascript" src="lpdoc.js"></script><title>Stream utilities — The Ciao System v1.22</title></head><body><div class="lpdoc-page fixleftbar"><a href="#" id="sidebar-toggle-button" class="lpdoc-navbutton"><span id="sidebar-button-arrow">☰</span></a><div id="sidebar" class="lpdoc-sidebar"><div style="height: 40px; margin-left: auto; margin-right: auto"><img src="ciao-logo_autofig.png" width=auto height=100%></div><div class="lpdoc-nav"><span class="lpdoc-on-right"><a class="lpdoc-navbutton" href="StdLibs.html">↑</a><a class="lpdoc-navbutton" href="io_basic.html">←</a><a class="lpdoc-navbutton" href="tokenize.html">→</a><a class="lpdoc-navbutton" href="ciaosearch.html">🔍</a></span><span><a href="ciaofulltoc.html">TOC</a></span></div><hr></hr><ul class="lpdoc-itemize-sectpath"><li><a href="ciao.html">The Ciao System</a> »<br/> </li><li><a href="StdLibs.html">PART VII - Standard libraries</a> »<br/> </li><li><a href=""><strong>Stream utilities</strong></a></li></ul><hr></hr><em>ON THIS PAGE</em><ul><li><a href="#Usage and interface">Usage and interface</a></li><li><a href="#Documentation on exports">Documentation on exports</a></li><li><a href="#Documentation on imports">Documentation on imports</a></li></ul></div><div class="lpdoc-main"><div id=""><h1>Stream utilities</h1><a class="lpdoc-idx-anchor" href="ciaosearch.html#stream_utils"></a>
<strong>Author(s):</strong> <a class="lpdoc-idx-anchor" id="The Ciao Development Team" href="ciaosearch.html#The Ciao Development Team">The Ciao Development Team</a>.<p>
This module implements a collection of predicates to read/write streams (or files) from/to several sources (lists of terms, strings, predicate output, etc.).<br/><div id="Usage and interface"><h2>Usage and interface</h2><div class="lpdoc-cartouche"><ul><li><strong>Library usage:</strong><br/><tt>:- use_module(library(stream_utils)).</tt><li><strong>Exports:</strong><br/><ul class="lpdoc-itemize-minus"><li><em>Predicates:</em><br/><a class="lpdoc-idx-anchor" id="0" href="#get_line/2"><tt>get_line/2</tt></a>, <a class="lpdoc-idx-anchor" id="1" href="#get_line/1"><tt>get_line/1</tt></a>, <a class="lpdoc-idx-anchor" id="2" href="#read_string_to_end/2"><tt>read_string_to_end/2</tt></a>, <a class="lpdoc-idx-anchor" id="3" href="#read_bytes_to_end/2"><tt>read_bytes_to_end/2</tt></a>, <a class="lpdoc-idx-anchor" id="4" href="#discard_to_end/1"><tt>discard_to_end/1</tt></a>, <a class="lpdoc-idx-anchor" id="5" href="#read_bytes/3"><tt>read_bytes/3</tt></a>, <a class="lpdoc-idx-anchor" id="6" href="#copy_stream/3"><tt>copy_stream/3</tt></a>, <a class="lpdoc-idx-anchor" id="7" href="#write_string/2"><tt>write_string/2</tt></a>, <a class="lpdoc-idx-anchor" id="8" href="#write_string/1"><tt>write_string/1</tt></a>, <a class="lpdoc-idx-anchor" id="9" href="#write_bytes/2"><tt>write_bytes/2</tt></a>, <a class="lpdoc-idx-anchor" id="10" href="#write_bytes/1"><tt>write_bytes/1</tt></a>, <a class="lpdoc-idx-anchor" id="11" href="#file_to_string/2"><tt>file_to_string/2</tt></a>, <a class="lpdoc-idx-anchor" id="12" href="#string_to_file/2"><tt>string_to_file/2</tt></a>, <a class="lpdoc-idx-anchor" id="13" href="#file_to_bytes/2"><tt>file_to_bytes/2</tt></a>, <a class="lpdoc-idx-anchor" id="14" href="#bytes_to_file/2"><tt>bytes_to_file/2</tt></a>, <a class="lpdoc-idx-anchor" id="15" href="#output_to_file/2"><tt>output_to_file/2</tt></a>, <a class="lpdoc-idx-anchor" id="16" href="#open_input/2"><tt>open_input/2</tt></a>, <a class="lpdoc-idx-anchor" id="17" href="#close_input/1"><tt>close_input/1</tt></a>, <a class="lpdoc-idx-anchor" id="18" href="#open_output/2"><tt>open_output/2</tt></a>, <a class="lpdoc-idx-anchor" id="19" href="#close_output/1"><tt>close_output/1</tt></a>.
<li><em>Regular Types:</em><br/><a class="lpdoc-idx-anchor" id="20" href="#line/1"><tt>line/1</tt></a>.
</ul></ul></div></div><div id="Documentation on exports"><h2>Documentation on exports</h2><div><div class="lpdoc-defname"><span class="lpdoc-predtag">PREDICATE</span><a class="lpdoc-idx-anchor" id="get_line/2" href="ciaosearch.html#get_line/2">get_line/2</a></div><div class="lpdoc-deftext"><p><span class="lpdoc-usage-header">Usage:</span><span class="lpdoc-usage-decl"><tt>get_line(S,L)</tt>
</span><p>Reads from <span class="lpdoc-var">Stream</span> a line of text and unifies <span class="lpdoc-var">Line</span> with it. The end of the line can have Unix <tt>[10]</tt> or Windows/DOS <tt>[13, 10]</tt> termination, which is not included in <span class="lpdoc-var">Line</span>. At EOF, the term <tt>end_of_file</tt> is returned.</p><ul class="lpdoc-itemize-minus"><li><em>The following properties should hold at call time:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="21" href="stream_basic.html#stream/1"><tt>stream_basic:stream/1</tt></a>)</span><span><span class="lpdoc-var">S</span> is an open stream.
</span>
<li><em>The following properties should hold upon exit:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="23" href="#line/1"><tt>stream_utils:line/1</tt></a>)</span><span><a class="lpdoc-idx-anchor" id="22" href="ciaosearch.html#line(L)"><tt>stream_utils:line(L)</tt></a>
</span>
</ul></div></div><p>
<div><div class="lpdoc-defname"><span class="lpdoc-predtag">PREDICATE</span><a class="lpdoc-idx-anchor" id="get_line/1" href="ciaosearch.html#get_line/1">get_line/1</a></div><div class="lpdoc-deftext"><p><span class="lpdoc-usage-header">Usage:</span><span class="lpdoc-usage-decl"><tt>get_line(L)</tt>
</span><p>Behaves like <tt>current_input(S), get_line(S,Line)</tt>.</p><ul class="lpdoc-itemize-minus"><li><em>The following properties should hold upon exit:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="25" href="#line/1"><tt>stream_utils:line/1</tt></a>)</span><span><a class="lpdoc-idx-anchor" id="24" href="ciaosearch.html#line(L)"><tt>stream_utils:line(L)</tt></a>
</span>
</ul></div></div><p>
<div><div class="lpdoc-defname"><span class="lpdoc-predtag">REGTYPE</span><a class="lpdoc-idx-anchor" id="line/1" href="ciaosearch.html#line/1">line/1</a></div><div class="lpdoc-deftext">A regular type, defined as follows:<pre class="lpdoc-codeblock">line(L) :-
string(L).
line(end_of_file).
</pre> </div></div><p>
<div><div class="lpdoc-defname"><span class="lpdoc-predtag">PREDICATE</span><a class="lpdoc-idx-anchor" id="read_string_to_end/2" href="ciaosearch.html#read_string_to_end/2">read_string_to_end/2</a></div><div class="lpdoc-deftext"><p><span class="lpdoc-usage-header">Usage:</span><span class="lpdoc-usage-decl"><tt>read_string_to_end(Stream,String)</tt>
</span><p>Reads in <span class="lpdoc-var">String</span> all the characters from <span class="lpdoc-var">Stream</span> until an EOF is found.</p><ul class="lpdoc-itemize-minus"><li><em>The following properties should hold at call time:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="26" href="stream_basic.html#stream/1"><tt>stream_basic:stream/1</tt></a>)</span><span><span class="lpdoc-var">Stream</span> is an open stream.
</span>
<li><em>The following properties should hold upon exit:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="27" href="basic_props.html#string/1"><tt>basic_props:string/1</tt></a>)</span><span><span class="lpdoc-var">String</span> is a string (a list of character codes).
</span>
</ul></div></div><p>
<div><div class="lpdoc-defname"><span class="lpdoc-predtag">PREDICATE</span><a class="lpdoc-idx-anchor" id="read_bytes_to_end/2" href="ciaosearch.html#read_bytes_to_end/2">read_bytes_to_end/2</a></div><div class="lpdoc-deftext"><p><span class="lpdoc-usage-header">Usage:</span><span class="lpdoc-usage-decl"><tt>read_bytes_to_end(Stream,Bytes)</tt>
</span><p>Reads in <span class="lpdoc-var">Bytes</span> all the bytes from <span class="lpdoc-var">Stream</span> until an EOF is found.</p><ul class="lpdoc-itemize-minus"><li><em>The following properties should hold at call time:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="28" href="stream_basic.html#stream/1"><tt>stream_basic:stream/1</tt></a>)</span><span><span class="lpdoc-var">Stream</span> is an open stream.
</span>
<li><em>The following properties should hold upon exit:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="29" href="basic_props.html#bytelist/1"><tt>basic_props:bytelist/1</tt></a>)</span><span><span class="lpdoc-var">Bytes</span> is list of bytes.
</span>
</ul></div></div><p>
<div><div class="lpdoc-defname"><span class="lpdoc-predtag">PREDICATE</span><a class="lpdoc-idx-anchor" id="discard_to_end/1" href="ciaosearch.html#discard_to_end/1">discard_to_end/1</a></div><div class="lpdoc-deftext"><p><span class="lpdoc-usage-header">Usage:</span><span class="lpdoc-usage-decl"><tt>discard_to_end(Stream)</tt>
</span><p>Reads in all the bytes from <span class="lpdoc-var">Stream</span> until an EOF is found.</p><ul class="lpdoc-itemize-minus"><li><em>The following properties should hold at call time:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="30" href="stream_basic.html#stream/1"><tt>stream_basic:stream/1</tt></a>)</span><span><span class="lpdoc-var">Stream</span> is an open stream.
</span>
</ul></div></div><p>
<div><div class="lpdoc-defname"><span class="lpdoc-predtag">PREDICATE</span><a class="lpdoc-idx-anchor" id="read_bytes/3" href="ciaosearch.html#read_bytes/3">read_bytes/3</a></div><div class="lpdoc-deftext"><p><span class="lpdoc-usage-header">Usage:</span><span class="lpdoc-usage-decl"><tt>read_bytes(Stream,N,Bytes)</tt>
</span><p>Reads in <span class="lpdoc-var">Bytes</span> at most <span class="lpdoc-var">N</span> bytes from <span class="lpdoc-var">Stream</span>, or until an EOF is found.</p><ul class="lpdoc-itemize-minus"><li><em>The following properties should hold at call time:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="31" href="stream_basic.html#stream/1"><tt>stream_basic:stream/1</tt></a>)</span><span><span class="lpdoc-var">Stream</span> is an open stream.
</span><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="32" href="basic_props.html#int/1"><tt>basic_props:int/1</tt></a>)</span><span><span class="lpdoc-var">N</span> is an integer.
</span>
<li><em>The following properties should hold upon exit:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="33" href="basic_props.html#bytelist/1"><tt>basic_props:bytelist/1</tt></a>)</span><span><span class="lpdoc-var">Bytes</span> is list of bytes.
</span>
</ul></div></div><p>
<div><div class="lpdoc-defname"><span class="lpdoc-predtag">PREDICATE</span><a class="lpdoc-idx-anchor" id="copy_stream/3" href="ciaosearch.html#copy_stream/3">copy_stream/3</a></div><div class="lpdoc-deftext"><p><span class="lpdoc-usage-header">Usage:</span><span class="lpdoc-usage-decl"><tt>copy_stream(InS,OutS,Copied)</tt>
</span><p>Copies all bytes bytes (until EOF or error) from the <span class="lpdoc-var">InS</span> stream into the <span class="lpdoc-var">OutS</span> stream. The number of copied bytes is returned in <span class="lpdoc-var">Copied</span></p><ul class="lpdoc-itemize-minus"><li><em>The following properties should hold at call time:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="34" href="stream_basic.html#stream/1"><tt>stream_basic:stream/1</tt></a>)</span><span><span class="lpdoc-var">InS</span> is an open stream.
</span><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="35" href="stream_basic.html#stream/1"><tt>stream_basic:stream/1</tt></a>)</span><span><span class="lpdoc-var">OutS</span> is an open stream.
</span>
<li><em>The following properties should hold upon exit:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="36" href="basic_props.html#int/1"><tt>basic_props:int/1</tt></a>)</span><span><span class="lpdoc-var">Copied</span> is an integer.
</span>
</ul></div></div><p>
<div><div class="lpdoc-defname"><span class="lpdoc-predtag">PREDICATE</span><a class="lpdoc-idx-anchor" id="write_string/2" href="ciaosearch.html#write_string/2">write_string/2</a></div><div class="lpdoc-deftext"><p><span class="lpdoc-usage-header">Usage:</span><span class="lpdoc-usage-decl"><tt>write_string(Stream,String)</tt>
</span><p>Writes <span class="lpdoc-var">String</span> onto <span class="lpdoc-var">Stream</span>.</p><ul class="lpdoc-itemize-minus"><li><em>The following properties should hold at call time:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="37" href="stream_basic.html#stream/1"><tt>stream_basic:stream/1</tt></a>)</span><span><span class="lpdoc-var">Stream</span> is an open stream.
</span><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="38" href="basic_props.html#string/1"><tt>basic_props:string/1</tt></a>)</span><span><span class="lpdoc-var">String</span> is a string (a list of character codes).
</span>
</ul></div></div><p>
<div><div class="lpdoc-defname"><span class="lpdoc-predtag">PREDICATE</span><a class="lpdoc-idx-anchor" id="write_string/1" href="ciaosearch.html#write_string/1">write_string/1</a></div><div class="lpdoc-deftext"><p><span class="lpdoc-usage-header">Usage:</span><span class="lpdoc-usage-decl"><tt>write_string(String)</tt>
</span><p>Behaves like <tt>current_input(S), write_string(S, String)</tt>.</p><ul class="lpdoc-itemize-minus"><li><em>The following properties should hold at call time:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="39" href="basic_props.html#string/1"><tt>basic_props:string/1</tt></a>)</span><span><span class="lpdoc-var">String</span> is a string (a list of character codes).
</span>
</ul></div></div><p>
<div><div class="lpdoc-defname"><span class="lpdoc-predtag">PREDICATE</span><a class="lpdoc-idx-anchor" id="write_bytes/2" href="ciaosearch.html#write_bytes/2">write_bytes/2</a></div><div class="lpdoc-deftext"><p><span class="lpdoc-usage-header">Usage:</span><span class="lpdoc-usage-decl"><tt>write_bytes(Stream,Bytes)</tt>
</span><p>Writes <span class="lpdoc-var">Bytes</span> onto <span class="lpdoc-var">Stream</span>.</p><ul class="lpdoc-itemize-minus"><li><em>The following properties should hold at call time:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="40" href="stream_basic.html#stream/1"><tt>stream_basic:stream/1</tt></a>)</span><span><span class="lpdoc-var">Stream</span> is an open stream.
</span><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="41" href="basic_props.html#bytelist/1"><tt>basic_props:bytelist/1</tt></a>)</span><span><span class="lpdoc-var">Bytes</span> is list of bytes.
</span>
</ul></div></div><p>
<div><div class="lpdoc-defname"><span class="lpdoc-predtag">PREDICATE</span><a class="lpdoc-idx-anchor" id="write_bytes/1" href="ciaosearch.html#write_bytes/1">write_bytes/1</a></div><div class="lpdoc-deftext"><p><span class="lpdoc-usage-header">Usage:</span><span class="lpdoc-usage-decl"><tt>write_bytes(Bytes)</tt>
</span><p>Behaves like <tt>current_input(S), write_bytes(S, Bytes)</tt>.</p><ul class="lpdoc-itemize-minus"><li><em>The following properties should hold at call time:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="42" href="basic_props.html#bytelist/1"><tt>basic_props:bytelist/1</tt></a>)</span><span><span class="lpdoc-var">Bytes</span> is list of bytes.
</span>
</ul></div></div><p>
<div><div class="lpdoc-defname"><span class="lpdoc-predtag">PREDICATE</span><a class="lpdoc-idx-anchor" id="file_to_string/2" href="ciaosearch.html#file_to_string/2">file_to_string/2</a></div><div class="lpdoc-deftext"><p><span class="lpdoc-usage-header">Usage:</span><span class="lpdoc-usage-decl"><tt>file_to_string(FileName,String)</tt>
</span><p>Reads all the characters from the file <span class="lpdoc-var">FileName</span> and returns them in <span class="lpdoc-var">String</span>.</p><ul class="lpdoc-itemize-minus"><li><em>The following properties should hold at call time:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="43" href="stream_basic.html#sourcename/1"><tt>stream_basic:sourcename/1</tt></a>)</span><span><span class="lpdoc-var">FileName</span> is a source name.
</span>
<li><em>The following properties should hold upon exit:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="44" href="basic_props.html#string/1"><tt>basic_props:string/1</tt></a>)</span><span><span class="lpdoc-var">String</span> is a string (a list of character codes).
</span>
</ul></div></div><p>
<div><div class="lpdoc-defname"><span class="lpdoc-predtag">PREDICATE</span><a class="lpdoc-idx-anchor" id="string_to_file/2" href="ciaosearch.html#string_to_file/2">string_to_file/2</a></div><div class="lpdoc-deftext"><p><span class="lpdoc-usage-header">Usage:</span><span class="lpdoc-usage-decl"><tt>string_to_file(String,FileName)</tt>
</span><p>Reads all the characters from the string <span class="lpdoc-var">String</span> and writes them to file <span class="lpdoc-var">FileName</span>.</p><ul class="lpdoc-itemize-minus"><li><em>The following properties should hold at call time:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="45" href="basic_props.html#string/1"><tt>basic_props:string/1</tt></a>)</span><span><span class="lpdoc-var">String</span> is a string (a list of character codes).
</span><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="46" href="stream_basic.html#sourcename/1"><tt>stream_basic:sourcename/1</tt></a>)</span><span><span class="lpdoc-var">FileName</span> is a source name.
</span>
</ul></div></div><p>
<div><div class="lpdoc-defname"><span class="lpdoc-predtag">PREDICATE</span><a class="lpdoc-idx-anchor" id="file_to_bytes/2" href="ciaosearch.html#file_to_bytes/2">file_to_bytes/2</a></div><div class="lpdoc-deftext"><p><span class="lpdoc-usage-header">Usage:</span><span class="lpdoc-usage-decl"><tt>file_to_bytes(FileName,Bytes)</tt>
</span><p>Reads all the bytes from the file <span class="lpdoc-var">FileName</span> and returns them in <span class="lpdoc-var">Bytes</span>.</p><ul class="lpdoc-itemize-minus"><li><em>The following properties should hold at call time:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="47" href="stream_basic.html#sourcename/1"><tt>stream_basic:sourcename/1</tt></a>)</span><span><span class="lpdoc-var">FileName</span> is a source name.
</span>
<li><em>The following properties should hold upon exit:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="48" href="basic_props.html#bytelist/1"><tt>basic_props:bytelist/1</tt></a>)</span><span><span class="lpdoc-var">Bytes</span> is list of bytes.
</span>
</ul></div></div><p>
<div><div class="lpdoc-defname"><span class="lpdoc-predtag">PREDICATE</span><a class="lpdoc-idx-anchor" id="bytes_to_file/2" href="ciaosearch.html#bytes_to_file/2">bytes_to_file/2</a></div><div class="lpdoc-deftext"><p><span class="lpdoc-usage-header">Usage:</span><span class="lpdoc-usage-decl"><tt>bytes_to_file(Bytes,FileName)</tt>
</span><p>Reads all the bytes from the bytes <span class="lpdoc-var">Bytes</span> and writes them to file <span class="lpdoc-var">FileName</span>.</p><ul class="lpdoc-itemize-minus"><li><em>The following properties should hold at call time:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="49" href="basic_props.html#bytelist/1"><tt>basic_props:bytelist/1</tt></a>)</span><span><span class="lpdoc-var">Bytes</span> is list of bytes.
</span><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="50" href="stream_basic.html#sourcename/1"><tt>stream_basic:sourcename/1</tt></a>)</span><span><span class="lpdoc-var">FileName</span> is a source name.
</span>
</ul></div></div><p>
<div><div class="lpdoc-defname"><span class="lpdoc-predtag">PREDICATE</span><a class="lpdoc-idx-anchor" id="output_to_file/2" href="ciaosearch.html#output_to_file/2">output_to_file/2</a></div><div class="lpdoc-deftext">No further documentation available for this predicate.
<em>Meta-predicate</em> with arguments: <tt>output_to_file(goal,?)</tt>.<br/></div></div><p>
<div><div class="lpdoc-defname"><span class="lpdoc-predtag">PREDICATE</span><a class="lpdoc-idx-anchor" id="open_input/2" href="ciaosearch.html#open_input/2">open_input/2</a></div><div class="lpdoc-deftext"><p><span class="lpdoc-usage-header">Usage:</span><span class="lpdoc-usage-decl"><tt>open_input(FileName,InputStreams)</tt>
</span><p></p><ul class="lpdoc-itemize-minus"><li><em>The following properties should hold at call time:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="51" href="stream_basic.html#sourcename/1"><tt>stream_basic:sourcename/1</tt></a>)</span><span><span class="lpdoc-var">FileName</span> is a source name.
</span>
<li><em>The following properties should hold upon exit:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="53" href="ciaosearch.html#input_handler/1"><tt>stream_utils:input_handler/1</tt></a>)</span><span><a class="lpdoc-idx-anchor" id="52" href="ciaosearch.html#input_handler(InputStreams)"><tt>stream_utils:input_handler(InputStreams)</tt></a>
</span>
</ul></div></div><p>
<div><div class="lpdoc-defname"><span class="lpdoc-predtag">PREDICATE</span><a class="lpdoc-idx-anchor" id="close_input/1" href="ciaosearch.html#close_input/1">close_input/1</a></div><div class="lpdoc-deftext"><p><span class="lpdoc-usage-header">Usage:</span><span class="lpdoc-usage-decl"><tt>close_input(InputStreams)</tt>
</span><p></p><ul class="lpdoc-itemize-minus"><li><em>The following properties should hold at call time:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="55" href="ciaosearch.html#input_handler/1"><tt>stream_utils:input_handler/1</tt></a>)</span><span><a class="lpdoc-idx-anchor" id="54" href="ciaosearch.html#input_handler(InputStreams)"><tt>stream_utils:input_handler(InputStreams)</tt></a>
</span>
<li><em>The following properties should hold upon exit:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="57" href="ciaosearch.html#input_handler/1"><tt>stream_utils:input_handler/1</tt></a>)</span><span><a class="lpdoc-idx-anchor" id="56" href="ciaosearch.html#input_handler(InputStreams)"><tt>stream_utils:input_handler(InputStreams)</tt></a>
</span>
</ul></div></div><p>
<div><div class="lpdoc-defname"><span class="lpdoc-predtag">PREDICATE</span><a class="lpdoc-idx-anchor" id="open_output/2" href="ciaosearch.html#open_output/2">open_output/2</a></div><div class="lpdoc-deftext"><p><span class="lpdoc-usage-header">Usage:</span><span class="lpdoc-usage-decl"><tt>open_output(FileName,OutputStreams)</tt>
</span><p></p><ul class="lpdoc-itemize-minus"><li><em>The following properties should hold at call time:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="58" href="stream_basic.html#sourcename/1"><tt>stream_basic:sourcename/1</tt></a>)</span><span><span class="lpdoc-var">FileName</span> is a source name.
</span>
<li><em>The following properties should hold upon exit:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="60" href="ciaosearch.html#output_handler/1"><tt>stream_utils:output_handler/1</tt></a>)</span><span><a class="lpdoc-idx-anchor" id="59" href="ciaosearch.html#output_handler(OutputStreams)"><tt>stream_utils:output_handler(OutputStreams)</tt></a>
</span>
</ul></div></div><p>
<div><div class="lpdoc-defname"><span class="lpdoc-predtag">PREDICATE</span><a class="lpdoc-idx-anchor" id="close_output/1" href="ciaosearch.html#close_output/1">close_output/1</a></div><div class="lpdoc-deftext"><p><span class="lpdoc-usage-header">Usage:</span><span class="lpdoc-usage-decl"><tt>close_output(OutputStreams)</tt>
</span><p></p><ul class="lpdoc-itemize-minus"><li><em>The following properties should hold at call time:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="62" href="ciaosearch.html#output_handler/1"><tt>stream_utils:output_handler/1</tt></a>)</span><span><a class="lpdoc-idx-anchor" id="61" href="ciaosearch.html#output_handler(OutputStreams)"><tt>stream_utils:output_handler(OutputStreams)</tt></a>
</span>
<li><em>The following properties should hold upon exit:</em><br/><span class="lpdoc-on-right"> (<a class="lpdoc-idx-anchor" id="64" href="ciaosearch.html#output_handler/1"><tt>stream_utils:output_handler/1</tt></a>)</span><span><a class="lpdoc-idx-anchor" id="63" href="ciaosearch.html#output_handler(OutputStreams)"><tt>stream_utils:output_handler(OutputStreams)</tt></a>
</span>
</ul></div></div><p>
</div><div id="Documentation on imports"><h2>Documentation on imports</h2>This module has the following direct dependencies:<ul class="lpdoc-itemize-minus"><li><em>Packages:</em><br/><a class="lpdoc-idx-anchor" id="65" href="ciaosearch.html#prelude"><tt>prelude</tt></a>, <a class="lpdoc-idx-anchor" id="66" href="ciaosearch.html#initial"><tt>initial</tt></a>, <a class="lpdoc-idx-anchor" id="67" href="condcomp_doc.html"><tt>condcomp</tt></a>, <a class="lpdoc-idx-anchor" id="68" href="assertions_doc.html"><tt>assertions</tt></a>, <a class="lpdoc-idx-anchor" id="69" href="ciaosearch.html#assertions/assertions_basic"><tt>assertions/assertions_basic</tt></a>, <a class="lpdoc-idx-anchor" id="70" href="isomodes_doc.html"><tt>isomodes</tt></a>, <a class="lpdoc-idx-anchor" id="71" href="ciaosearch.html#hiord"><tt>hiord</tt></a>.
</ul></div></div><div class="lpdoc-footer">Generated with LPdoc using Ciao</div></div><div class="lpdoc-clearer"></div></div></body></html>