Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 425 lines (362 sloc) 21.071 kb
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
1 <html>
2 <head>
0db1ab50 »
2012-04-01 Autodoc commit for 1.3.x/1f55cc0a, master/3bd2af46, 1.2.x/612fba91, 1…
3 <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
c8ed19b3 »
2014-03-27 Autodoc commit for clojure-1.6.0/42ce9947, master/201a0dd9, clojure-1…
4 <title>clojure.java.io - Clojure v1.6 API documentation</title>
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
5 <link href="static/favicon.png" rel="icon" />
6 <link href="static/favicon.png" rel="shortcut icon" />
7 <link media="all" type="text/css" href="static/clojure.css" rel="stylesheet" />
8 <link media="all" type="text/css" href="static/wiki.css" rel="stylesheet" />
9 <link media="all" type="text/css" href="static/internal.css" rel="stylesheet" />
10 <style>.menuWrapper{height: 36px;}</style>
11 </head>
12 <!--
13 This document was auto-generated from the source by the clojure autodoc system.
14 To report errors or ask questions about the overall documentation structure, formatting,
15 etc., contact Tom Faulhaber (google mail name: tomfaulhaber).
16 For errors in the documentation of a particular namespace, contact the author of that
17 namespace.
18 -->
19 <body>
20 <div id="AllContentContainer">
21 <div id="Header">
22 <a id="Logo" href="index.html"><img alt="Clojure" height="100" width="100" src="static/clojure-icon.gif" /></a>
23 <h1><a title="page header title" id="page-header" href="index.html">Clojure Core API Reference</a></h1>
24 </div>
25 <div id="leftcolumn"><div style="text-align: center;"></div>
26 <div class="menu">
27 <div class="WikiCustomNav WikiElement wiki">
c8ed19b3 »
2014-03-27 Autodoc commit for clojure-1.6.0/42ce9947, master/201a0dd9, clojure-1…
28 <span class="toc-header"><span id="project-name">Clojure</span> <span id="version">v1.6</span> API</span><br />
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
29 <ul>
30 <li><a class="wiki_link" href="index.html">Overview</a></li>
31 <li><a class="wiki_link" href="api-index.html">API Index</a></li>
32 </ul>
763f8b12 »
2011-09-24 Autodoc commit for 1.3.x/1f55cc0a, master/f410e10e, 1.2.x/612fba91, 1…
33 <div class="NamespaceTOC">
34 <span class="toc-header">Namespaces</span>
35 <ul id="left-sidebar-list">
aaf3c604 »
2013-03-01 Autodoc commit for clojure-1.5.0/34261936, master/64b9f3cf, clojure-1…
36 <li><a href="clojure.core-api.html" class="wiki_link">clojure.core</a></li><li><a href="clojure.data-api.html" class="wiki_link">clojure.data</a></li><li><a href="clojure.edn-api.html" class="wiki_link">clojure.edn</a></li><li><a href="clojure.inspector-api.html" class="wiki_link">clojure.inspector</a></li><li><a href="clojure.instant-api.html" class="wiki_link">clojure.instant</a></li><li><a href="clojure.java.browse-api.html" class="wiki_link">clojure.java.browse</a></li><li><a href="clojure.java.io-api.html" class="wiki_link">clojure.java.io</a></li><li><a href="clojure.java.javadoc-api.html" class="wiki_link">clojure.java.javadoc</a></li><li><a href="clojure.java.shell-api.html" class="wiki_link">clojure.java.shell</a></li><li><a href="clojure.main-api.html" class="wiki_link">clojure.main</a></li><li><a href="clojure.pprint-api.html" class="wiki_link">clojure.pprint</a></li><li><a href="clojure.reflect-api.html" class="wiki_link">clojure.reflect</a></li><li><a href="clojure.repl-api.html" class="wiki_link">clojure.repl</a></li><li><a href="clojure.set-api.html" class="wiki_link">clojure.set</a></li><li><a href="clojure.stacktrace-api.html" class="wiki_link">clojure.stacktrace</a></li><li><a href="clojure.string-api.html" class="wiki_link">clojure.string</a></li><li><a href="clojure.template-api.html" class="wiki_link">clojure.template</a></li><li><a href="clojure.test-api.html" class="wiki_link">clojure.test</a></li><li><a href="clojure.walk-api.html" class="wiki_link">clojure.walk</a></li><li><a href="clojure.xml-api.html" class="wiki_link">clojure.xml</a></li><li><a href="clojure.zip-api.html" class="wiki_link">clojure.zip</a></li>
763f8b12 »
2011-09-24 Autodoc commit for 1.3.x/1f55cc0a, master/f410e10e, 1.2.x/612fba91, 1…
37 </ul>
38 </div>
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
39 <div class="BranchTOC">
40 <span class="toc-header">Other Versions</span>
41 <ul id="left-sidebar-branch-list">
c8ed19b3 »
2014-03-27 Autodoc commit for clojure-1.6.0/42ce9947, master/201a0dd9, clojure-1…
42 <li><a href="branch-master/index.html" class="wiki_link">v1.7 (in development)</a></li><li><a href="branch-clojure-1.5.0/index.html" class="wiki_link">v1.5 (stable)</a></li><li><a href="branch-clojure-1.4.0/index.html" class="wiki_link">v1.4 (legacy)</a></li><li><a href="branch-1.3.x/index.html" class="wiki_link">v1.3 (legacy)</a></li><li><a href="branch-1.2.x/index.html" class="wiki_link">v1.2 (legacy)</a></li><li><a href="branch-1.1.x/index.html" class="wiki_link">v1.1 (legacy)</a></li>
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
43 </ul>
44 </div>
45 <a href="http://clojure.org" class="wiki_link">Clojure Home</a>
46 </div>
47 </div>
48 </div>
49 <div id="rightcolumn">
50 <div id="Content">
51 <div class="contentBox"><div class="innerContentBox">
52 <div id="content_view" class="wiki wikiPage">
53 <div id="right-sidebar"><div id="toc">
54 <h1 class="nopad">Table of Contents</h1>
55 <div style="margin-left: 1em;" class="toc-section">
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
56 <a href="#toc0" style="margin-top: 3px;">Overview</a>
57
58 </div><div style="margin-left: 1em;" class="toc-section">
59 <a href="#proto-section" style="margin-top: 3px;">Protocols</a>
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
60 <div style="margin-left: 1em;" class="toc-entry">
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
61 <a class="toc-entry-anchor" href="#clojure.java.io/Coercions">Coercions</a>
62 <div style="margin-left: 1em;" class="toc-subentry">
63 <a class="toc-subentry-anchor" href="#clojure.java.io/as-file">as-file</a>
64 </div><div style="margin-left: 1em;" class="toc-subentry">
65 <a class="toc-subentry-anchor" href="#clojure.java.io/as-url">as-url</a>
66 </div>
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
67 </div><div style="margin-left: 1em;" class="toc-entry">
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
68 <a class="toc-entry-anchor" href="#clojure.java.io/IOFactory">IOFactory</a>
69 <div style="margin-left: 1em;" class="toc-subentry">
70 <a class="toc-subentry-anchor" href="#clojure.java.io/make-input-stream">make-input-stream</a>
71 </div><div style="margin-left: 1em;" class="toc-subentry">
72 <a class="toc-subentry-anchor" href="#clojure.java.io/make-output-stream">make-output-stream</a>
73 </div><div style="margin-left: 1em;" class="toc-subentry">
74 <a class="toc-subentry-anchor" href="#clojure.java.io/make-reader">make-reader</a>
75 </div><div style="margin-left: 1em;" class="toc-subentry">
76 <a class="toc-subentry-anchor" href="#clojure.java.io/make-writer">make-writer</a>
77 </div>
78 </div>
79 </div><div style="margin-left: 1em;" class="toc-section">
80 <a href="#" style="margin-top: 3px;"></a>
81
82 </div><div style="margin-left: 1em;" class="toc-section">
83 <a href="#var-section" style="margin-top: 3px;">Vars and Functions</a>
84 <div style="margin-left: 1em;" class="toc-entry">
85 <a class="toc-entry-anchor" href="#clojure.java.io/as-relative-path">as-relative-path</a>
86
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
87 </div><div style="margin-left: 1em;" class="toc-entry">
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
88 <a class="toc-entry-anchor" href="#clojure.java.io/copy">copy</a>
89
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
90 </div><div style="margin-left: 1em;" class="toc-entry">
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
91 <a class="toc-entry-anchor" href="#clojure.java.io/delete-file">delete-file</a>
92
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
93 </div><div style="margin-left: 1em;" class="toc-entry">
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
94 <a class="toc-entry-anchor" href="#clojure.java.io/file">file</a>
95
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
96 </div><div style="margin-left: 1em;" class="toc-entry">
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
97 <a class="toc-entry-anchor" href="#clojure.java.io/input-stream">input-stream</a>
98
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
99 </div><div style="margin-left: 1em;" class="toc-entry">
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
100 <a class="toc-entry-anchor" href="#clojure.java.io/make-parents">make-parents</a>
101
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
102 </div><div style="margin-left: 1em;" class="toc-entry">
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
103 <a class="toc-entry-anchor" href="#clojure.java.io/output-stream">output-stream</a>
104
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
105 </div><div style="margin-left: 1em;" class="toc-entry">
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
106 <a class="toc-entry-anchor" href="#clojure.java.io/reader">reader</a>
107
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
108 </div><div style="margin-left: 1em;" class="toc-entry">
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
109 <a class="toc-entry-anchor" href="#clojure.java.io/resource">resource</a>
110
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
111 </div><div style="margin-left: 1em;" class="toc-entry">
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
112 <a class="toc-entry-anchor" href="#clojure.java.io/writer">writer</a>
113
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
114 </div>
115 </div>
116 </div>
117 </div>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
118 <div id="content-tag"><h1 id="overview">API for <span id="clojure.java.io">clojure.java.io</span>
c8ed19b3 »
2014-03-27 Autodoc commit for clojure-1.6.0/42ce9947, master/201a0dd9, clojure-1…
119 - <span id="header-project">Clojure</span> <span id="header-version">v1.6</span><span id="header-status-block"> (<span id="header-status">stable</span>)</span>
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
120 </h1>
763f8b12 »
2011-09-24 Autodoc commit for 1.3.x/1f55cc0a, master/f410e10e, 1.2.x/612fba91, 1…
121
fc04f58c »
2010-11-27 Autodoc commit for 1.2.x/f128af9d, master/cbd789d1, 1.1.x/5293929c
122 <br />Full namespace name: <span id="long-name">clojure.java.io</span>
123 <p></p>
124 <h2>Overview</h2>
0db1ab50 »
2012-04-01 Autodoc commit for 1.3.x/1f55cc0a, master/3bd2af46, 1.2.x/612fba91, 1…
125
763f8b12 »
2011-09-24 Autodoc commit for 1.3.x/1f55cc0a, master/f410e10e, 1.2.x/612fba91, 1…
126 <pre id="namespace-docstr"></pre>
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
127
128
129 <br />
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
130
131 <div id="proto-section">
132 <p></p>
133 <h2>Protocols</h2>
134 <div id="proto-entry">
135 <br />
136 <hr />
137 <h2 id="clojure.java.io/Coercions">Coercions</h2>
138 <span id="proto-type">Protocol</span><br />
139 <pre id="proto-docstr">Coerce between various 'resource-namish' things.</pre>
140 Known implementations: <span id="proto-impls">java.io.File, java.lang.String, java.net.URI, java.net.URL, nil</span>
141 <div id="proto-var-entry">
142 <br />
143 <h3 id="clojure.java.io/as-file">as-file</h3>
144 <span id="var-type">function</span><br />
145 <pre id="var-usage">Usage: (as-file x)
146 </pre>
147 <pre id="var-docstr">Coerce argument to a file.</pre>
148 <span class="var-added"><span id="content">Added in Clojure version 1.2</span><br /></span>
149
150
151 </div><div id="proto-var-entry">
152 <br />
153 <h3 id="clojure.java.io/as-url">as-url</h3>
154 <span id="var-type">function</span><br />
155 <pre id="var-usage">Usage: (as-url x)
156 </pre>
157 <pre id="var-docstr">Coerce argument to a URL.</pre>
158 <span class="var-added"><span id="content">Added in Clojure version 1.2</span><br /></span>
159
160
161 </div>
162 <span class="proto-added"><span id="content">Added in Clojure version 1.2</span><br /></span>
163
c8ed19b3 »
2014-03-27 Autodoc commit for clojure-1.6.0/42ce9947, master/201a0dd9, clojure-1…
164 <a href="https://github.com/clojure/clojure/blob/8bd8e8d0f2d68e1652eaa3b08f315d4e6a573be7/src/clj/clojure/java/io.clj#L35" id="proto-source">Source</a>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
165 </div><div id="proto-entry">
166 <br />
167 <hr />
168 <h2 id="clojure.java.io/IOFactory">IOFactory</h2>
169 <span id="proto-type">Protocol</span><br />
170 <pre id="proto-docstr">Factory functions that create ready-to-use, buffered versions of
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
171 the various Java I/O stream types, on top of anything that can
172 be unequivocally converted to the requested kind of stream.
173
174 Common options include
175
176 :append true to open stream in append mode
177 :encoding string name of encoding to use, e.g. "UTF-8".
178
179 Callers should generally prefer the higher level API provided by
180 reader, writer, input-stream, and output-stream.</pre>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
181 Known implementations: <span id="proto-impls">array-of-bytes, array-of-characters, java.io.BufferedInputStream, java.io.BufferedOutputStream, java.io.BufferedReader, java.io.BufferedWriter, java.io.File, java.io.InputStream, java.io.OutputStream, java.io.Reader, java.io.Writer, java.lang.String, java.net.Socket, java.net.URI, java.net.URL, Object</span>
182 <div id="proto-var-entry">
183 <br />
184 <h3 id="clojure.java.io/make-input-stream">make-input-stream</h3>
185 <span id="var-type">function</span><br />
186 <pre id="var-usage">Usage: (make-input-stream x opts)
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
187 </pre>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
188 <pre id="var-docstr">Creates a BufferedInputStream. See also IOFactory docs.</pre>
189 <span class="var-added"><span id="content">Added in Clojure version 1.2</span><br /></span>
190
191
192 </div><div id="proto-var-entry">
193 <br />
194 <h3 id="clojure.java.io/make-output-stream">make-output-stream</h3>
195 <span id="var-type">function</span><br />
196 <pre id="var-usage">Usage: (make-output-stream x opts)
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
197 </pre>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
198 <pre id="var-docstr">Creates a BufferedOutputStream. See also IOFactory docs.</pre>
199 <span class="var-added"><span id="content">Added in Clojure version 1.2</span><br /></span>
200
201
202 </div><div id="proto-var-entry">
203 <br />
204 <h3 id="clojure.java.io/make-reader">make-reader</h3>
205 <span id="var-type">function</span><br />
206 <pre id="var-usage">Usage: (make-reader x opts)
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
207 </pre>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
208 <pre id="var-docstr">Creates a BufferedReader. See also IOFactory docs.</pre>
209 <span class="var-added"><span id="content">Added in Clojure version 1.2</span><br /></span>
210
211
212 </div><div id="proto-var-entry">
213 <br />
214 <h3 id="clojure.java.io/make-writer">make-writer</h3>
215 <span id="var-type">function</span><br />
216 <pre id="var-usage">Usage: (make-writer x opts)
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
217 </pre>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
218 <pre id="var-docstr">Creates a BufferedWriter. See also IOFactory docs.</pre>
219 <span class="var-added"><span id="content">Added in Clojure version 1.2</span><br /></span>
220
221
222 </div>
223 <span class="proto-added"><span id="content">Added in Clojure version 1.2</span><br /></span>
224
c8ed19b3 »
2014-03-27 Autodoc commit for clojure-1.6.0/42ce9947, master/201a0dd9, clojure-1…
225 <a href="https://github.com/clojure/clojure/blob/8bd8e8d0f2d68e1652eaa3b08f315d4e6a573be7/src/clj/clojure/java/io.clj#L69" id="proto-source">Source</a>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
226 </div>
227 </div>
228
229 <div id="var-section">
230 <p></p>
231 <h2>Public Variables and Functions</h2>
232 <div id="var-entry">
233 <br />
234 <hr />
235 <h2 id="clojure.java.io/as-relative-path">as-relative-path</h2>
236 <span id="var-type">function</span><br />
237 <pre id="var-usage">Usage: (as-relative-path x)
238 </pre>
239 <pre id="var-docstr">Take an as-file-able thing and return a string if it is
240 a relative path, else IllegalArgumentException.</pre>
241 <span class="var-added"><span id="content">Added in Clojure version 1.2</span><br /></span>
242
c8ed19b3 »
2014-03-27 Autodoc commit for clojure-1.6.0/42ce9947, master/201a0dd9, clojure-1…
243 <a href="https://github.com/clojure/clojure/blob/8bd8e8d0f2d68e1652eaa3b08f315d4e6a573be7/src/clj/clojure/java/io.clj#L398" id="var-source">Source</a>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
244 </div><div id="var-entry">
245 <br />
246 <hr />
247 <h2 id="clojure.java.io/copy">copy</h2>
248 <span id="var-type">function</span><br />
249 <pre id="var-usage">Usage: (copy input output &amp; opts)
250 </pre>
251 <pre id="var-docstr">Copies input to output. Returns nil or throws IOException.
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
252 Input may be an InputStream, Reader, File, byte[], or String.
253 Output may be an OutputStream, Writer, or File.
254
255 Options are key/value pairs and may be one of
256
257 :buffer-size buffer size to use, default is 1024.
258 :encoding encoding to use if converting between
259 byte and char streams.
260
261 Does not close any streams except those it opens itself
262 (on a File).</pre>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
263 <span class="var-added"><span id="content">Added in Clojure version 1.2</span><br /></span>
264
c8ed19b3 »
2014-03-27 Autodoc commit for clojure-1.6.0/42ce9947, master/201a0dd9, clojure-1…
265 <a href="https://github.com/clojure/clojure/blob/8bd8e8d0f2d68e1652eaa3b08f315d4e6a573be7/src/clj/clojure/java/io.clj#L381" id="var-source">Source</a>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
266 </div><div id="var-entry">
267 <br />
268 <hr />
269 <h2 id="clojure.java.io/delete-file">delete-file</h2>
270 <span id="var-type">function</span><br />
271 <pre id="var-usage">Usage: (delete-file f &amp; [silently])
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
272 </pre>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
273 <pre id="var-docstr">Delete file f. Raise an exception if it fails unless silently is true.</pre>
274 <span class="var-added"><span id="content">Added in Clojure version 1.2</span><br /></span>
275
c8ed19b3 »
2014-03-27 Autodoc commit for clojure-1.6.0/42ce9947, master/201a0dd9, clojure-1…
276 <a href="https://github.com/clojure/clojure/blob/8bd8e8d0f2d68e1652eaa3b08f315d4e6a573be7/src/clj/clojure/java/io.clj#L420" id="var-source">Source</a>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
277 </div><div id="var-entry">
278 <br />
279 <hr />
280 <h2 id="clojure.java.io/file">file</h2>
281 <span id="var-type">function</span><br />
282 <pre id="var-usage">Usage: (file arg)
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
283 (file parent child)
284 (file parent child &amp; more)
285 </pre>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
286 <pre id="var-docstr">Returns a java.io.File, passing each arg to as-file. Multiple-arg
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
287 versions treat the first argument as parent and subsequent args as
288 children relative to the parent.</pre>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
289 <span class="var-added"><span id="content">Added in Clojure version 1.2</span><br /></span>
290
c8ed19b3 »
2014-03-27 Autodoc commit for clojure-1.6.0/42ce9947, master/201a0dd9, clojure-1…
291 <a href="https://github.com/clojure/clojure/blob/8bd8e8d0f2d68e1652eaa3b08f315d4e6a573be7/src/clj/clojure/java/io.clj#L408" id="var-source">Source</a>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
292 </div><div id="var-entry">
293 <br />
294 <hr />
295 <h2 id="clojure.java.io/input-stream">input-stream</h2>
296 <span id="var-type">function</span><br />
297 <pre id="var-usage">Usage: (input-stream x &amp; opts)
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
298 </pre>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
299 <pre id="var-docstr">Attempts to coerce its argument into an open java.io.InputStream.
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
300 Default implementations always return a java.io.BufferedInputStream.
301
302 Default implementations are defined for OutputStream, File, URI, URL,
303 Socket, byte array, and String arguments.
304
305 If the argument is a String, it tries to resolve it first as a URI, then
306 as a local file name. URIs with a 'file' protocol are converted to
307 local file names.
308
309 Should be used inside with-open to ensure the InputStream is properly
310 closed.</pre>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
311 <span class="var-added"><span id="content">Added in Clojure version 1.2</span><br /></span>
312
c8ed19b3 »
2014-03-27 Autodoc commit for clojure-1.6.0/42ce9947, master/201a0dd9, clojure-1…
313 <a href="https://github.com/clojure/clojure/blob/8bd8e8d0f2d68e1652eaa3b08f315d4e6a573be7/src/clj/clojure/java/io.clj#L121" id="var-source">Source</a>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
314 </div><div id="var-entry">
315 <br />
316 <hr />
317 <h2 id="clojure.java.io/make-parents">make-parents</h2>
318 <span id="var-type">function</span><br />
319 <pre id="var-usage">Usage: (make-parents f &amp; more)
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
320 </pre>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
321 <pre id="var-docstr">Given the same arg(s) as for file, creates all parent directories of
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
322 the file they represent.</pre>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
323 <span class="var-added"><span id="content">Added in Clojure version 1.2</span><br /></span>
324
c8ed19b3 »
2014-03-27 Autodoc commit for clojure-1.6.0/42ce9947, master/201a0dd9, clojure-1…
325 <a href="https://github.com/clojure/clojure/blob/8bd8e8d0f2d68e1652eaa3b08f315d4e6a573be7/src/clj/clojure/java/io.clj#L428" id="var-source">Source</a>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
326 </div><div id="var-entry">
327 <br />
328 <hr />
329 <h2 id="clojure.java.io/output-stream">output-stream</h2>
330 <span id="var-type">function</span><br />
331 <pre id="var-usage">Usage: (output-stream x &amp; opts)
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
332 </pre>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
333 <pre id="var-docstr">Attempts to coerce its argument into an open java.io.OutputStream.
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
334 Default implementations always return a java.io.BufferedOutputStream.
335
336 Default implementations are defined for OutputStream, File, URI, URL,
337 Socket, and String arguments.
338
339 If the argument is a String, it tries to resolve it first as a URI, then
340 as a local file name. URIs with a 'file' protocol are converted to
341 local file names.
342
343 Should be used inside with-open to ensure the OutputStream is
344 properly closed.</pre>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
345 <span class="var-added"><span id="content">Added in Clojure version 1.2</span><br /></span>
346
c8ed19b3 »
2014-03-27 Autodoc commit for clojure-1.6.0/42ce9947, master/201a0dd9, clojure-1…
347 <a href="https://github.com/clojure/clojure/blob/8bd8e8d0f2d68e1652eaa3b08f315d4e6a573be7/src/clj/clojure/java/io.clj#L138" id="var-source">Source</a>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
348 </div><div id="var-entry">
349 <br />
350 <hr />
351 <h2 id="clojure.java.io/reader">reader</h2>
352 <span id="var-type">function</span><br />
353 <pre id="var-usage">Usage: (reader x &amp; opts)
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
354 </pre>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
355 <pre id="var-docstr">Attempts to coerce its argument into an open java.io.Reader.
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
356 Default implementations always return a java.io.BufferedReader.
357
358 Default implementations are provided for Reader, BufferedReader,
359 InputStream, File, URI, URL, Socket, byte arrays, character arrays,
360 and String.
361
362 If argument is a String, it tries to resolve it first as a URI, then
363 as a local file name. URIs with a 'file' protocol are converted to
364 local file names.
365
366 Should be used inside with-open to ensure the Reader is properly
367 closed.</pre>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
368 <span class="var-added"><span id="content">Added in Clojure version 1.2</span><br /></span>
369
c8ed19b3 »
2014-03-27 Autodoc commit for clojure-1.6.0/42ce9947, master/201a0dd9, clojure-1…
370 <a href="https://github.com/clojure/clojure/blob/8bd8e8d0f2d68e1652eaa3b08f315d4e6a573be7/src/clj/clojure/java/io.clj#L86" id="var-source">Source</a>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
371 </div><div id="var-entry">
372 <br />
373 <hr />
374 <h2 id="clojure.java.io/resource">resource</h2>
375 <span id="var-type">function</span><br />
376 <pre id="var-usage">Usage: (resource n)
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
377 (resource n loader)
378 </pre>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
379 <pre id="var-docstr">Returns the URL for a named resource. Use the context class loader
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
380 if no loader is specified.</pre>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
381 <span class="var-added"><span id="content">Added in Clojure version 1.2</span><br /></span>
382
c8ed19b3 »
2014-03-27 Autodoc commit for clojure-1.6.0/42ce9947, master/201a0dd9, clojure-1…
383 <a href="https://github.com/clojure/clojure/blob/8bd8e8d0f2d68e1652eaa3b08f315d4e6a573be7/src/clj/clojure/java/io.clj#L436" id="var-source">Source</a>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
384 </div><div id="var-entry">
385 <br />
386 <hr />
387 <h2 id="clojure.java.io/writer">writer</h2>
388 <span id="var-type">function</span><br />
389 <pre id="var-usage">Usage: (writer x &amp; opts)
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
390 </pre>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
391 <pre id="var-docstr">Attempts to coerce its argument into an open java.io.Writer.
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
392 Default implementations always return a java.io.BufferedWriter.
393
394 Default implementations are provided for Writer, BufferedWriter,
395 OutputStream, File, URI, URL, Socket, and String.
396
397 If the argument is a String, it tries to resolve it first as a URI, then
398 as a local file name. URIs with a 'file' protocol are converted to
399 local file names.
400
401 Should be used inside with-open to ensure the Writer is properly
402 closed.</pre>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
403 <span class="var-added"><span id="content">Added in Clojure version 1.2</span><br /></span>
404
c8ed19b3 »
2014-03-27 Autodoc commit for clojure-1.6.0/42ce9947, master/201a0dd9, clojure-1…
405 <a href="https://github.com/clojure/clojure/blob/8bd8e8d0f2d68e1652eaa3b08f315d4e6a573be7/src/clj/clojure/java/io.clj#L104" id="var-source">Source</a>
970ce5a8 »
2012-03-23 Autodoc commit for 1.3.x/1f55cc0a, master/ba3fa753, 1.2.x/612fba91, 1…
406 </div>
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
407 </div>
408
409
410 </div>
411 </div>
412 </div>
413 </div>
414 </div>
415 <div id="foot">
c8ed19b3 »
2014-03-27 Autodoc commit for clojure-1.6.0/42ce9947, master/201a0dd9, clojure-1…
416 <div style="text-align: center;" id="copyright">Copyright 2007-2014 by Rich Hickey</div>
36614ae7 »
2010-10-20 Manual updte because new var binding stuff is messing up autodoc
417 </div>
418 </div>
419 <div id="DesignedBy">Logo &amp; site design by <a title="Visit Tom Hickey's website." href="http://www.tomhickey.com">Tom Hickey</a>.<br />
420 Clojure auto-documentation system by Tom Faulhaber.</div>
421 </div>
422 <!-- /AllContentContainer -->
423 </body>
424
425 </html>
Something went wrong with that request. Please try again.