67 lines
10 KiB
HTML
67 lines
10 KiB
HTML
<!-- Common Lisp HyperSpec (TM), version 7.0 generated by Kent M. Pitman on Mon, 11-Apr-2005 2:31am EDT -->
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>CLHS: Section 21.1.3</TITLE>
|
|
<LINK HREF="../Data/clhs.css" REL="stylesheet" TYPE="text/css" />
|
|
<META HTTP-EQUIV="Author" CONTENT="Kent M. Pitman">
|
|
<META HTTP-EQUIV="Organization" CONTENT="LispWorks Ltd.">
|
|
<LINK REL=TOP HREF="../Front/index.htm">
|
|
<LINK REL=COPYRIGHT HREF="../Front/Help.htm#Legal">
|
|
<LINK REL=DISCLAIMER HREF="../Front/Help.htm#Disclaimer">
|
|
<LINK REL=PREV HREF="21_ab.htm">
|
|
<LINK REL=UP HREF="21_a.htm">
|
|
<LINK REL=NEXT HREF="21_ad.htm">
|
|
</HEAD>
|
|
<BODY>
|
|
<H1><A REV=MADE HREF="http://www.lispworks.com/"><IMG WIDTH=80 HEIGHT=65 ALT="[LISPWORKS]" SRC="../Graphics/LWSmall.gif" ALIGN=Bottom></A><A REL=TOP HREF="../Front/index.htm"><IMG WIDTH=237 HEIGHT=65 ALT="[Common Lisp HyperSpec (TM)]" SRC="../Graphics/CLHS_Sm.gif" ALIGN=Bottom></A> <A REL=PREV HREF="21_ab.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Previous]" SRC="../Graphics/Prev.gif" ALIGN=Bottom></A><A REL=UP HREF="21_a.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Up]" SRC="../Graphics/Up.gif" ALIGN=Bottom></A><A REL=NEXT HREF="21_ad.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Next]" SRC="../Graphics/Next.gif" ALIGN=Bottom></A></H1>
|
|
|
|
<HR>
|
|
|
|
<H2>
|
|
21.1.3 Stream Arguments to Standardized Functions</H2> <P>
|
|
The <A REL=DEFINITION HREF="26_glo_o.htm#operator"><I>operators</I></A> in the next figure accept <A REL=DEFINITION HREF="26_glo_s.htm#stream"><I>stream</I></A> <A REL=DEFINITION HREF="26_glo_a.htm#argument"><I>arguments</I></A> that might be either <A REL=DEFINITION HREF="26_glo_o.htm#open"><I>open</I></A> or <A REL=DEFINITION HREF="26_glo_c.htm#closed"><I>closed</I></A> <A REL=DEFINITION HREF="26_glo_s.htm#stream"><I>streams</I></A>. <P>
|
|
<A NAME="openorclosedstreamops"> <PRE>
|
|
<A REL=DEFINITION HREF="f_broadc.htm#broadcast-stream-streams">broadcast-stream-streams</A> <A REL=DEFINITION HREF="f_file_a.htm#file-author">file-author</A> <A REL=DEFINITION HREF="f_pnp.htm#pathnamep">pathnamep</A>
|
|
<A REL=DEFINITION HREF="f_close.htm#close">close</A> <A REL=DEFINITION HREF="f_namest.htm#file-namestring">file-namestring</A> <A REL=DEFINITION HREF="f_probe_.htm#probe-file">probe-file</A>
|
|
<A REL=DEFINITION HREF="f_cmp_fi.htm#compile-file">compile-file</A> <A REL=DEFINITION HREF="f_file_w.htm#file-write-date">file-write-date</A> <A REL=DEFINITION HREF="f_rn_fil.htm#rename-file">rename-file</A>
|
|
<A REL=DEFINITION HREF="f_cmp__1.htm#compile-file-pathname">compile-file-pathname</A> <A REL=DEFINITION HREF="f_namest.htm#host-namestring">host-namestring</A> <A REL=DEFINITION HREF="f_stmp.htm#streamp">streamp</A>
|
|
<A REL=DEFINITION HREF="f_conc_1.htm#concatenated-stream-streams">concatenated-stream-streams</A> <A REL=DEFINITION HREF="f_load.htm#load">load</A> <A REL=DEFINITION HREF="f_syn_st.htm#synonym-stream-symbol">synonym-stream-symbol</A>
|
|
<A REL=DEFINITION HREF="f_del_fi.htm#delete-file">delete-file</A> <A REL=DEFINITION HREF="a_logica.htm#logical-pathname">logical-pathname</A> <A REL=DEFINITION HREF="f_tr_log.htm#translate-logical-pathname">translate-logical-pathname</A>
|
|
<A REL=DEFINITION HREF="f_dir.htm#directory">directory</A> <A REL=DEFINITION HREF="f_merge_.htm#merge-pathnames">merge-pathnames</A> <A REL=DEFINITION HREF="f_tr_pn.htm#translate-pathname">translate-pathname</A>
|
|
<A REL=DEFINITION HREF="f_namest.htm#directory-namestring">directory-namestring</A> <A REL=DEFINITION HREF="f_namest.htm#namestring">namestring</A> <A REL=DEFINITION HREF="f_tn.htm#truename">truename</A>
|
|
<A REL=DEFINITION HREF="f_dribbl.htm#dribble">dribble</A> <A REL=DEFINITION HREF="f_open.htm#open">open</A> <A REL=DEFINITION HREF="f_two_wa.htm#two-way-stream-input-stream">two-way-stream-input-stream</A>
|
|
<A REL=DEFINITION HREF="f_echo_s.htm#echo-stream-input-stream">echo-stream-input-stream</A> <A REL=DEFINITION HREF="f_open_s.htm#open-stream-p">open-stream-p</A> <A REL=DEFINITION HREF="f_two_wa.htm#two-way-stream-output-stream">two-way-stream-output-stream</A>
|
|
echo-stream-ouput-stream <A REL=DEFINITION HREF="f_pars_1.htm#parse-namestring">parse-namestring</A> <A REL=DEFINITION HREF="f_wild_p.htm#wild-pathname-p">wild-pathname-p</A>
|
|
<A REL=DEFINITION HREF="f_ed.htm#ed">ed</A> <A REL=DEFINITION HREF="a_pn.htm#pathname">pathname</A> <A REL=DEFINITION HREF="m_w_open.htm#with-open-file">with-open-file</A>
|
|
<A REL=DEFINITION HREF="f_namest.htm#enough-namestring">enough-namestring</A> <A REL=DEFINITION HREF="f_pn_mat.htm#pathname-match-p">pathname-match-p</A>
|
|
</PRE>
|
|
<P><B>Figure 21-7. Operators that accept either Open or Closed Streams</B></A> <P>
|
|
The <A REL=DEFINITION HREF="26_glo_o.htm#operator"><I>operators</I></A> in the next figure accept <A REL=DEFINITION HREF="26_glo_s.htm#stream"><I>stream</I></A> <A REL=DEFINITION HREF="26_glo_a.htm#argument"><I>arguments</I></A> that must be <A REL=DEFINITION HREF="26_glo_o.htm#open"><I>open</I></A> <A REL=DEFINITION HREF="26_glo_s.htm#stream"><I>streams</I></A>. <P>
|
|
<PRE>
|
|
<A REL=DEFINITION HREF="f_clear_.htm#clear-input">clear-input</A> <A REL=DEFINITION HREF="f_in_stm.htm#output-stream-p">output-stream-p</A> <A REL=DEFINITION HREF="f_rd_c_1.htm#read-char-no-hang">read-char-no-hang</A>
|
|
<A REL=DEFINITION HREF="f_finish.htm#clear-output">clear-output</A> <A REL=DEFINITION HREF="f_peek_c.htm#peek-char">peek-char</A> <A REL=DEFINITION HREF="f_rd_del.htm#read-delimited-list">read-delimited-list</A>
|
|
<A REL=DEFINITION HREF="f_file_l.htm#file-length">file-length</A> <A REL=DEFINITION HREF="f_wr_pr.htm#pprint">pprint</A> <A REL=DEFINITION HREF="f_rd_lin.htm#read-line">read-line</A>
|
|
<A REL=DEFINITION HREF="f_file_p.htm#file-position">file-position</A> <A REL=DEFINITION HREF="f_ppr_fi.htm#pprint-fill">pprint-fill</A> <A REL=DEFINITION HREF="f_rd_rd.htm#read-preserving-whitespace">read-preserving-whitespace</A>
|
|
<A REL=DEFINITION HREF="f_file_s.htm#file-string-length">file-string-length</A> <A REL=DEFINITION HREF="f_ppr_in.htm#pprint-indent">pprint-indent</A> <A REL=DEFINITION HREF="f_stm_el.htm#stream-element-type">stream-element-type</A>
|
|
<A REL=DEFINITION HREF="f_finish.htm#finish-output">finish-output</A> <A REL=DEFINITION HREF="f_ppr_fi.htm#pprint-linear">pprint-linear</A> <A REL=DEFINITION HREF="f_stm_ex.htm#stream-external-format">stream-external-format</A>
|
|
<A REL=DEFINITION HREF="f_finish.htm#force-output">force-output</A> <A REL=DEFINITION HREF="m_ppr_lo.htm#pprint-logical-block">pprint-logical-block</A> <A REL=DEFINITION HREF="f_terpri.htm#terpri">terpri</A>
|
|
<A REL=DEFINITION HREF="f_format.htm#format">format</A> <A REL=DEFINITION HREF="f_ppr_nl.htm#pprint-newline">pprint-newline</A> <A REL=DEFINITION HREF="f_unrd_c.htm#unread-char">unread-char</A>
|
|
<A REL=DEFINITION HREF="f_terpri.htm#fresh-line">fresh-line</A> <A REL=DEFINITION HREF="f_ppr_ta.htm#pprint-tab">pprint-tab</A> <A REL=DEFINITION HREF="m_w_op_1.htm#with-open-stream">with-open-stream</A>
|
|
<A REL=DEFINITION HREF="f_get_ou.htm#get-output-stream-string">get-output-stream-string</A> <A REL=DEFINITION HREF="f_ppr_fi.htm#pprint-tabular">pprint-tabular</A> <A REL=DEFINITION HREF="f_wr_pr.htm#write">write</A>
|
|
<A REL=DEFINITION HREF="f_in_stm.htm#input-stream-p">input-stream-p</A> <A REL=DEFINITION HREF="f_wr_pr.htm#prin1">prin1</A> <A REL=DEFINITION HREF="f_wr_by.htm#write-byte">write-byte</A>
|
|
<A REL=DEFINITION HREF="f_intera.htm#interactive-stream-p">interactive-stream-p</A> <A REL=DEFINITION HREF="f_wr_pr.htm#princ">princ</A> <A REL=DEFINITION HREF="f_wr_cha.htm#write-char">write-char</A>
|
|
<A REL=DEFINITION HREF="f_listen.htm#listen">listen</A> <A REL=DEFINITION HREF="f_wr_pr.htm#print">print</A> <A REL=DEFINITION HREF="f_wr_stg.htm#write-line">write-line</A>
|
|
<A REL=DEFINITION HREF="f_mk_bro.htm#make-broadcast-stream">make-broadcast-stream</A> <A REL=DEFINITION HREF="f_pr_obj.htm#print-object">print-object</A> <A REL=DEFINITION HREF="f_wr_stg.htm#write-string">write-string</A>
|
|
<A REL=DEFINITION HREF="f_mk_con.htm#make-concatenated-stream">make-concatenated-stream</A> <A REL=DEFINITION HREF="m_pr_unr.htm#print-unreadable-object">print-unreadable-object</A> <A REL=DEFINITION HREF="f_y_or_n.htm#y-or-n-p">y-or-n-p</A>
|
|
<A REL=DEFINITION HREF="f_mk_ech.htm#make-echo-stream">make-echo-stream</A> <A REL=DEFINITION HREF="f_rd_rd.htm#read">read</A> <A REL=DEFINITION HREF="f_y_or_n.htm#yes-or-no-p">yes-or-no-p</A>
|
|
<A REL=DEFINITION HREF="f_mk_syn.htm#make-synonym-stream">make-synonym-stream</A> <A REL=DEFINITION HREF="f_rd_by.htm#read-byte">read-byte</A>
|
|
<A REL=DEFINITION HREF="f_mk_two.htm#make-two-way-stream">make-two-way-stream</A> <A REL=DEFINITION HREF="f_rd_cha.htm#read-char">read-char</A>
|
|
</PRE>
|
|
<P><B>Figure 21-8. Operators that accept Open Streams only</B> <P>
|
|
<HR>
|
|
|
|
<A REL=NAVIGATOR HREF="../Front/StartPts.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Starting Points]" SRC="../Graphics/StartPts.gif" ALIGN=Bottom></A><A REL=TOC HREF="../Front/Contents.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Contents]" SRC="../Graphics/Contents.gif" ALIGN=Bottom></A><A REL=INDEX HREF="../Front/X_Master.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Index]" SRC="../Graphics/Index.gif" ALIGN=Bottom></A><A REL=INDEX HREF="../Front/X_Symbol.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Symbols]" SRC="../Graphics/Symbols.gif" ALIGN=Bottom></A><A REL=GLOSSARY HREF="../Body/26_a.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Glossary]" SRC="../Graphics/Glossary.gif" ALIGN=Bottom></A><A HREF="../Front/X3J13Iss.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Issues]" SRC="../Graphics/Issues.gif" ALIGN=Bottom></A><BR>
|
|
|
|
<A REL=COPYRIGHT HREF="../Front/Help.htm#Legal"><I>Copyright 1996-2005, LispWorks Ltd. All rights reserved.</I></A><P>
|
|
</BODY>
|
|
</HTML>
|