diff options
author | Tom Faulhaber <git_net@infolace.com> | 2010-04-19 01:30:12 -0700 |
---|---|---|
committer | Tom Faulhaber <git_net@infolace.com> | 2010-04-19 01:30:12 -0700 |
commit | e8fe1760dbc77809b2285e9ecc32f0489bcf398d (patch) | |
tree | f9b0ae61c8537a9d2bcb0db295cfc3d77df965b4 /io-api.html | |
parent | 11d1785c76a97bed67e98042410a47c1aaf2e316 (diff) |
Manual autodoc update
Diffstat (limited to 'io-api.html')
-rw-r--r-- | io-api.html | 121 |
1 files changed, 89 insertions, 32 deletions
diff --git a/io-api.html b/io-api.html index 0c329c73..3d9ac03d 100644 --- a/io-api.html +++ b/io-api.html @@ -40,7 +40,7 @@ namespace. <a class="wiki_link" href="api-index.html">API Index</a><br /> <a class="wiki_link" href="#">Namespaces:</a> <ul id="left-sidebar-list"> - <li><a href="accumulators-api.html" class="wiki_link">accumulators</a></li><li><a href="agent-utils-api.html" class="wiki_link">agent-utils</a></li><li><a href="apply-macro-api.html" class="wiki_link">apply-macro</a></li><li><a href="base64-api.html" class="wiki_link">base64</a></li><li><a href="classpath-api.html" class="wiki_link">classpath</a></li><li><a href="combinatorics-api.html" class="wiki_link">combinatorics</a></li><li><a href="command-line-api.html" class="wiki_link">command-line</a></li><li><a href="complex-numbers-api.html" class="wiki_link">complex-numbers</a></li><li><a href="cond-api.html" class="wiki_link">cond</a></li><li><a href="condition-api.html" class="wiki_link">condition</a></li><li><a href="core-api.html" class="wiki_link">core</a></li><li><a href="dataflow-api.html" class="wiki_link">dataflow</a></li><li><a href="datalog-api.html" class="wiki_link">datalog</a></li><li><a href="def-api.html" class="wiki_link">def</a></li><li><a href="error-kit-api.html" class="wiki_link">error-kit</a></li><li><a href="except-api.html" class="wiki_link">except</a></li><li><a href="fcase-api.html" class="wiki_link">fcase</a></li><li><a href="find-namespaces-api.html" class="wiki_link">find-namespaces</a></li><li><a href="fnmap-api.html" class="wiki_link">fnmap</a></li><li><a href="gen-html-docs-api.html" class="wiki_link">gen-html-docs</a></li><li><a href="generic.arithmetic-api.html" class="wiki_link">generic.arithmetic</a></li><li><a href="generic.collection-api.html" class="wiki_link">generic.collection</a></li><li><a href="generic.comparison-api.html" class="wiki_link">generic.comparison</a></li><li><a href="generic.functor-api.html" class="wiki_link">generic.functor</a></li><li><a href="generic.math-functions-api.html" class="wiki_link">generic.math-functions</a></li><li><a href="graph-api.html" class="wiki_link">graph</a></li><li><a href="greatest-least-api.html" class="wiki_link">greatest-least</a></li><li><a href="http.agent-api.html" class="wiki_link">http.agent</a></li><li><a href="http.connection-api.html" class="wiki_link">http.connection</a></li><li><a href="import-static-api.html" class="wiki_link">import-static</a></li><li><a href="io-api.html" class="wiki_link">io</a></li><li><a href="jar-api.html" class="wiki_link">jar</a></li><li><a href="javadoc.browse-api.html" class="wiki_link">javadoc.browse</a></li><li><a href="jmx-api.html" class="wiki_link">jmx</a></li><li><a href="json-api.html" class="wiki_link">json</a></li><li><a href="lazy-seqs-api.html" class="wiki_link">lazy-seqs</a></li><li><a href="lazy-xml-api.html" class="wiki_link">lazy-xml</a></li><li><a href="logging-api.html" class="wiki_link">logging</a></li><li><a href="macro-utils-api.html" class="wiki_link">macro-utils</a></li><li><a href="macros-api.html" class="wiki_link">macros</a></li><li><a href="map-utils-api.html" class="wiki_link">map-utils</a></li><li><a href="math-api.html" class="wiki_link">math</a></li><li><a href="miglayout-api.html" class="wiki_link">miglayout</a></li><li><a href="mmap-api.html" class="wiki_link">mmap</a></li><li><a href="mock-api.html" class="wiki_link">mock</a></li><li><a href="monadic-io-streams-api.html" class="wiki_link">monadic-io-streams</a></li><li><a href="monads-api.html" class="wiki_link">monads</a></li><li><a href="ns-utils-api.html" class="wiki_link">ns-utils</a></li><li><a href="pprint-api.html" class="wiki_link">pprint</a></li><li><a href="probabilities.finite-distributions-api.html" class="wiki_link">probabilities.finite-distributions</a></li><li><a href="probabilities.monte-carlo-api.html" class="wiki_link">probabilities.monte-carlo</a></li><li><a href="probabilities.random-numbers-api.html" class="wiki_link">probabilities.random-numbers</a></li><li><a href="profile-api.html" class="wiki_link">profile</a></li><li><a href="properties-api.html" class="wiki_link">properties</a></li><li><a href="prxml-api.html" class="wiki_link">prxml</a></li><li><a href="reflect-api.html" class="wiki_link">reflect</a></li><li><a href="repl-ln-api.html" class="wiki_link">repl-ln</a></li><li><a href="repl-utils-api.html" class="wiki_link">repl-utils</a></li><li><a href="seq-api.html" class="wiki_link">seq</a></li><li><a href="server-socket-api.html" class="wiki_link">server-socket</a></li><li><a href="set-api.html" class="wiki_link">set</a></li><li><a href="shell-api.html" class="wiki_link">shell</a></li><li><a href="singleton-api.html" class="wiki_link">singleton</a></li><li><a href="sql-api.html" class="wiki_link">sql</a></li><li><a href="stream-utils-api.html" class="wiki_link">stream-utils</a></li><li><a href="string-api.html" class="wiki_link">string</a></li><li><a href="swing-utils-api.html" class="wiki_link">swing-utils</a></li><li><a href="test-is-api.html" class="wiki_link">test-is</a></li><li><a href="trace-api.html" class="wiki_link">trace</a></li><li><a href="types-api.html" class="wiki_link">types</a></li><li><a href="with-ns-api.html" class="wiki_link">with-ns</a></li><li><a href="zip-filter-api.html" class="wiki_link">zip-filter</a></li> + <li><a href="accumulators-api.html" class="wiki_link">accumulators</a></li><li><a href="agent-utils-api.html" class="wiki_link">agent-utils</a></li><li><a href="apply-macro-api.html" class="wiki_link">apply-macro</a></li><li><a href="base64-api.html" class="wiki_link">base64</a></li><li><a href="classpath-api.html" class="wiki_link">classpath</a></li><li><a href="combinatorics-api.html" class="wiki_link">combinatorics</a></li><li><a href="command-line-api.html" class="wiki_link">command-line</a></li><li><a href="complex-numbers-api.html" class="wiki_link">complex-numbers</a></li><li><a href="cond-api.html" class="wiki_link">cond</a></li><li><a href="condition-api.html" class="wiki_link">condition</a></li><li><a href="core-api.html" class="wiki_link">core</a></li><li><a href="dataflow-api.html" class="wiki_link">dataflow</a></li><li><a href="datalog-api.html" class="wiki_link">datalog</a></li><li><a href="def-api.html" class="wiki_link">def</a></li><li><a href="error-kit-api.html" class="wiki_link">error-kit</a></li><li><a href="except-api.html" class="wiki_link">except</a></li><li><a href="fcase-api.html" class="wiki_link">fcase</a></li><li><a href="find-namespaces-api.html" class="wiki_link">find-namespaces</a></li><li><a href="fnmap-api.html" class="wiki_link">fnmap</a></li><li><a href="gen-html-docs-api.html" class="wiki_link">gen-html-docs</a></li><li><a href="generic.arithmetic-api.html" class="wiki_link">generic.arithmetic</a></li><li><a href="generic.collection-api.html" class="wiki_link">generic.collection</a></li><li><a href="generic.comparison-api.html" class="wiki_link">generic.comparison</a></li><li><a href="generic.functor-api.html" class="wiki_link">generic.functor</a></li><li><a href="generic.math-functions-api.html" class="wiki_link">generic.math-functions</a></li><li><a href="graph-api.html" class="wiki_link">graph</a></li><li><a href="greatest-least-api.html" class="wiki_link">greatest-least</a></li><li><a href="http.agent-api.html" class="wiki_link">http.agent</a></li><li><a href="http.connection-api.html" class="wiki_link">http.connection</a></li><li><a href="import-static-api.html" class="wiki_link">import-static</a></li><li><a href="io-api.html" class="wiki_link">io</a></li><li><a href="jar-api.html" class="wiki_link">jar</a></li><li><a href="javadoc.browse-api.html" class="wiki_link">javadoc.browse</a></li><li><a href="jmx-api.html" class="wiki_link">jmx</a></li><li><a href="json-api.html" class="wiki_link">json</a></li><li><a href="lazy-seqs-api.html" class="wiki_link">lazy-seqs</a></li><li><a href="lazy-xml-api.html" class="wiki_link">lazy-xml</a></li><li><a href="logging-api.html" class="wiki_link">logging</a></li><li><a href="macro-utils-api.html" class="wiki_link">macro-utils</a></li><li><a href="macros-api.html" class="wiki_link">macros</a></li><li><a href="map-utils-api.html" class="wiki_link">map-utils</a></li><li><a href="math-api.html" class="wiki_link">math</a></li><li><a href="miglayout-api.html" class="wiki_link">miglayout</a></li><li><a href="mmap-api.html" class="wiki_link">mmap</a></li><li><a href="mock-api.html" class="wiki_link">mock</a></li><li><a href="monadic-io-streams-api.html" class="wiki_link">monadic-io-streams</a></li><li><a href="monads-api.html" class="wiki_link">monads</a></li><li><a href="ns-utils-api.html" class="wiki_link">ns-utils</a></li><li><a href="pprint-api.html" class="wiki_link">pprint</a></li><li><a href="probabilities.finite-distributions-api.html" class="wiki_link">probabilities.finite-distributions</a></li><li><a href="probabilities.monte-carlo-api.html" class="wiki_link">probabilities.monte-carlo</a></li><li><a href="probabilities.random-numbers-api.html" class="wiki_link">probabilities.random-numbers</a></li><li><a href="profile-api.html" class="wiki_link">profile</a></li><li><a href="properties-api.html" class="wiki_link">properties</a></li><li><a href="prxml-api.html" class="wiki_link">prxml</a></li><li><a href="reflect-api.html" class="wiki_link">reflect</a></li><li><a href="repl-ln-api.html" class="wiki_link">repl-ln</a></li><li><a href="repl-utils-api.html" class="wiki_link">repl-utils</a></li><li><a href="seq-api.html" class="wiki_link">seq</a></li><li><a href="server-socket-api.html" class="wiki_link">server-socket</a></li><li><a href="set-api.html" class="wiki_link">set</a></li><li><a href="shell-api.html" class="wiki_link">shell</a></li><li><a href="singleton-api.html" class="wiki_link">singleton</a></li><li><a href="sql-api.html" class="wiki_link">sql</a></li><li><a href="stream-utils-api.html" class="wiki_link">stream-utils</a></li><li><a href="string-api.html" class="wiki_link">string</a></li><li><a href="strint-api.html" class="wiki_link">strint</a></li><li><a href="swing-utils-api.html" class="wiki_link">swing-utils</a></li><li><a href="test-is-api.html" class="wiki_link">test-is</a></li><li><a href="trace-api.html" class="wiki_link">trace</a></li><li><a href="types-api.html" class="wiki_link">types</a></li><li><a href="with-ns-api.html" class="wiki_link">with-ns</a></li><li><a href="zip-filter-api.html" class="wiki_link">zip-filter</a></li> </ul> </div> </div> @@ -54,7 +54,7 @@ namespace. <div style="margin-left: 1em;" class="toc-section"> <a href="#toc0">Overview</a> <div style="margin-left: 1em;" class="toc-entry"> - <a href="#clojure.contrib.io/*append-to-writer*">*append-to-writer*</a> + <a href="#clojure.contrib.io/*append*">*append*</a> </div><div style="margin-left: 1em;" class="toc-entry"> <a href="#clojure.contrib.io/*buffer-size*">*buffer-size*</a> </div><div style="margin-left: 1em;" class="toc-entry"> @@ -62,6 +62,8 @@ namespace. </div><div style="margin-left: 1em;" class="toc-entry"> <a href="#clojure.contrib.io/*default-encoding*">*default-encoding*</a> </div><div style="margin-left: 1em;" class="toc-entry"> + <a href="#clojure.contrib.io/append-output-stream">append-output-stream</a> + </div><div style="margin-left: 1em;" class="toc-entry"> <a href="#clojure.contrib.io/append-spit">append-spit</a> </div><div style="margin-left: 1em;" class="toc-entry"> <a href="#clojure.contrib.io/append-writer">append-writer</a> @@ -80,8 +82,12 @@ namespace. </div><div style="margin-left: 1em;" class="toc-entry"> <a href="#clojure.contrib.io/file-str">file-str</a> </div><div style="margin-left: 1em;" class="toc-entry"> + <a href="#clojure.contrib.io/input-stream">input-stream</a> + </div><div style="margin-left: 1em;" class="toc-entry"> <a href="#clojure.contrib.io/make-parents">make-parents</a> </div><div style="margin-left: 1em;" class="toc-entry"> + <a href="#clojure.contrib.io/output-stream">output-stream</a> + </div><div style="margin-left: 1em;" class="toc-entry"> <a href="#clojure.contrib.io/pwd">pwd</a> </div><div style="margin-left: 1em;" class="toc-entry"> <a href="#clojure.contrib.io/read-lines">read-lines</a> @@ -134,12 +140,13 @@ or "just-give-me-a-stream", but ducks are funnier.</pre> <div id="var-entry"> <br /> <hr /> - <h2 id="clojure.contrib.io/*append-to-writer*">*append-to-writer*</h2> + <h2 id="clojure.contrib.io/*append*">*append*</h2> <span id="var-type">var</span><br /> <pre id="var-usage"></pre> - <pre id="var-docstr">If true, writer and spit will open files in append mode. -Defaults to false. Use append-writer or append-spit.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/bacf49256673242bb7ce09b9f5983c27163e5bfc/src/main/clojure/clojure/contrib/io.clj#L145" id="var-source">Source</a> + <pre id="var-docstr">If true, writer, output-stream and spit will open files in append mode. +Defaults to false. Instead of binding this var directly, use append-writer, +append-output-stream or append-spit.</pre> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L177" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -148,7 +155,7 @@ Defaults to false. Use append-writer or append-spit.</pre> <pre id="var-usage"></pre> <pre id="var-docstr">Size, in bytes or characters, of the buffer used when copying streams.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/bacf49256673242bb7ce09b9f5983c27163e5bfc/src/main/clojure/clojure/contrib/io.clj#L76" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L77" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -156,7 +163,7 @@ copying streams.</pre> <span id="var-type">var</span><br /> <pre id="var-usage"></pre> <pre id="var-docstr">Type object for a Java primitive byte array.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/bacf49256673242bb7ce09b9f5983c27163e5bfc/src/main/clojure/clojure/contrib/io.clj#L81" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L82" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -165,7 +172,17 @@ copying streams.</pre> <pre id="var-usage"></pre> <pre id="var-docstr">Name of the default encoding to use when reading & writing. Default is UTF-8.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/bacf49256673242bb7ce09b9f5983c27163e5bfc/src/main/clojure/clojure/contrib/io.clj#L70" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L71" id="var-source">Source</a> +</div><div id="var-entry"> + <br /> + <hr /> + <h2 id="clojure.contrib.io/append-output-stream">append-output-stream</h2> + <span id="var-type">function</span><br /> + <pre id="var-usage">Usage: (append-output-stream x) +</pre> + <pre id="var-docstr">Like output-stream but opens file for appending. Does not work on streams +that are already open.</pre> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L235" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -174,7 +191,7 @@ Default is UTF-8.</pre> <pre id="var-usage">Usage: (append-spit f content) </pre> <pre id="var-docstr">Like spit but appends to file.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/bacf49256673242bb7ce09b9f5983c27163e5bfc/src/main/clojure/clojure/contrib/io.clj#L264" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L337" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -184,7 +201,7 @@ Default is UTF-8.</pre> </pre> <pre id="var-docstr">Like writer but opens file for appending. Does not work on streams that are already open.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/bacf49256673242bb7ce09b9f5983c27163e5bfc/src/main/clojure/clojure/contrib/io.clj#L216" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L289" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -194,7 +211,7 @@ that are already open.</pre> <pre id="var-docstr">Interpret a String or a java.io.File as a File. Building block for clojure.contrib.java/file, which you should prefer in most cases.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/bacf49256673242bb7ce09b9f5983c27163e5bfc/src/main/clojure/clojure/contrib/io.clj#L431" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L504" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -203,7 +220,7 @@ in most cases.</pre> <pre id="var-usage">Usage: (as-url arg) </pre> <pre id="var-docstr">Coerces argument (URL, URI, or String) to a java.net.URL.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/bacf49256673242bb7ce09b9f5983c27163e5bfc/src/main/clojure/clojure/contrib/io.clj#L465" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L538" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -219,7 +236,7 @@ Does not close any streams except those it opens itself (on a File). Writing a File fails if the parent directory does not exist.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/bacf49256673242bb7ce09b9f5983c27163e5bfc/src/main/clojure/clojure/contrib/io.clj#L300" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L373" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -228,7 +245,7 @@ Writing a File fails if the parent directory does not exist.</pre> <pre id="var-usage">Usage: (delete-file f & [silently]) </pre> <pre id="var-docstr">Delete file f. Raise an exception if it fails unless silently is true.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/bacf49256673242bb7ce09b9f5983c27163e5bfc/src/main/clojure/clojure/contrib/io.clj#L448" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L521" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -238,7 +255,7 @@ Writing a File fails if the parent directory does not exist.</pre> </pre> <pre id="var-docstr">Delete file f. If it's a directory, recursively delete all its contents. Raise an exception if any deletion fails unless silently is true.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/bacf49256673242bb7ce09b9f5983c27163e5bfc/src/main/clojure/clojure/contrib/io.clj#L455" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L528" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -249,7 +266,7 @@ Raise an exception if any deletion fails unless silently is true.</pre> (file parent child & more) </pre> <pre id="var-docstr">Returns a java.io.File from string or file args.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/bacf49256673242bb7ce09b9f5983c27163e5bfc/src/main/clojure/clojure/contrib/io.clj#L439" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L512" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -260,7 +277,26 @@ Raise an exception if any deletion fails unless silently is true.</pre> <pre id="var-docstr">Concatenates args as strings and returns a java.io.File. Replaces all / and \ with File/separatorChar. Replaces ~ at the start of the path with the user.home system property.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/bacf49256673242bb7ce09b9f5983c27163e5bfc/src/main/clojure/clojure/contrib/io.clj#L86" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L87" id="var-source">Source</a> +</div><div id="var-entry"> + <br /> + <hr /> + <h2 id="clojure.contrib.io/input-stream">input-stream</h2> + <span id="var-type">multimethod</span><br /> + <pre id="var-usage">Usage: (input-stream x) +</pre> + <pre id="var-docstr">Attempts to coerce its argument into an open +java.io.BufferedInputStream. Argument may be an instance of +BufferedInputStream, InputStream, File, URI, URL, Socket, or String. + +If argument is a String, it tries to resolve it first as a URI, then +as a local file name. URIs with a 'file' protocol are converted to +local file names. If this fails, a final attempt is made to resolve +the string as a resource on the CLASSPATH. + +Should be used inside with-open to ensure the InputStream is properly +closed.</pre> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L102" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -269,7 +305,25 @@ the path with the user.home system property.</pre> <pre id="var-usage">Usage: (make-parents file) </pre> <pre id="var-docstr">Creates all parent directories of file.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/bacf49256673242bb7ce09b9f5983c27163e5bfc/src/main/clojure/clojure/contrib/io.clj#L387" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L460" id="var-source">Source</a> +</div><div id="var-entry"> + <br /> + <hr /> + <h2 id="clojure.contrib.io/output-stream">output-stream</h2> + <span id="var-type">multimethod</span><br /> + <pre id="var-usage">Usage: (output-stream x) +</pre> + <pre id="var-docstr">Attempts to coerce its argument into an open +java.io.OutputStream or java.io.BufferedOutputStream. Argument may +be an instance of OutputStream, File, URI, URL, Socket, or String. + +If argument is a String, it tries to resolve it first as a URI, then +as a local file name. URIs with a 'file' protocol are converted to +local file names. + +Should be used inside with-open to ensure the OutputStream is +properly closed.</pre> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L188" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -279,7 +333,7 @@ the path with the user.home system property.</pre> </pre> <pre id="var-docstr">Returns current working directory as a String. (Like UNIX 'pwd'.) Note: In Java, you cannot change the current working directory.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/bacf49256673242bb7ce09b9f5983c27163e5bfc/src/main/clojure/clojure/contrib/io.clj#L270" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L343" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -289,7 +343,7 @@ Note: In Java, you cannot change the current working directory.</pre> </pre> <pre id="var-docstr">Like clojure.core/line-seq but opens f with reader. Automatically closes the reader AFTER YOU CONSUME THE ENTIRE SEQUENCE.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/bacf49256673242bb7ce09b9f5983c27163e5bfc/src/main/clojure/clojure/contrib/io.clj#L235" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L308" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -303,11 +357,14 @@ BufferedReader, InputStream, File, URI, URL, Socket, or String. If argument is a String, it tries to resolve it first as a URI, then as a local file name. URIs with a 'file' protocol are converted to -local file names. Uses *default-encoding* as the text encoding. +local file names. If this fails, a final attempt is made to resolve +the string as a resource on the CLASSPATH. + +Uses *default-encoding* as the text encoding. Should be used inside with-open to ensure the Reader is properly closed.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/bacf49256673242bb7ce09b9f5983c27163e5bfc/src/main/clojure/clojure/contrib/io.clj#L101" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L147" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -316,7 +373,7 @@ closed.</pre> <pre id="var-usage">No usage documentation available</pre> <pre id="var-docstr">Interpret a String or java.io.File as a relative path string. Building block for clojure.contrib.java/file.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/bacf49256673242bb7ce09b9f5983c27163e5bfc/src/main/clojure/clojure/contrib/io.clj#L418" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L491" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -325,7 +382,7 @@ Building block for clojure.contrib.java/file.</pre> <pre id="var-usage">Usage: (slurp* f) </pre> <pre id="var-docstr">Like clojure.core/slurp but opens f with reader.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/bacf49256673242bb7ce09b9f5983c27163e5bfc/src/main/clojure/clojure/contrib/io.clj#L246" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L319" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -335,7 +392,7 @@ Building block for clojure.contrib.java/file.</pre> </pre> <pre id="var-docstr">Opposite of slurp. Opens f with writer, writes content, then closes f.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/bacf49256673242bb7ce09b9f5983c27163e5bfc/src/main/clojure/clojure/contrib/io.clj#L257" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L330" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -346,7 +403,7 @@ closes f.</pre> <pre id="var-docstr">Converts argument into a Java byte array. Argument may be a String, File, InputStream, or Reader. If the argument is already a byte array, returns it.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/bacf49256673242bb7ce09b9f5983c27163e5bfc/src/main/clojure/clojure/contrib/io.clj#L392" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L465" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -355,7 +412,7 @@ a byte array, returns it.</pre> <pre id="var-usage">Usage: (with-in-reader f & body) </pre> <pre id="var-docstr">Opens a PushbackReader on f, binds it to *in*, and evaluates body.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/bacf49256673242bb7ce09b9f5983c27163e5bfc/src/main/clojure/clojure/contrib/io.clj#L293" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L366" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -364,7 +421,7 @@ a byte array, returns it.</pre> <pre id="var-usage">Usage: (with-out-append-writer f & body) </pre> <pre id="var-docstr">Like with-out-writer but appends to file.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/bacf49256673242bb7ce09b9f5983c27163e5bfc/src/main/clojure/clojure/contrib/io.clj#L286" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L359" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -374,7 +431,7 @@ a byte array, returns it.</pre> </pre> <pre id="var-docstr">Opens a writer on f, binds it to *out*, and evalutes body. Anything printed within body will be written to f.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/bacf49256673242bb7ce09b9f5983c27163e5bfc/src/main/clojure/clojure/contrib/io.clj#L278" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L351" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -384,7 +441,7 @@ Anything printed within body will be written to f.</pre> </pre> <pre id="var-docstr">Writes lines (a seq) to f, separated by newlines. f is opened with writer, and automatically closed at the end of the sequence.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/bacf49256673242bb7ce09b9f5983c27163e5bfc/src/main/clojure/clojure/contrib/io.clj#L224" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L297" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -403,7 +460,7 @@ local file names. Should be used inside with-open to ensure the Writer is properly closed.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/bacf49256673242bb7ce09b9f5983c27163e5bfc/src/main/clojure/clojure/contrib/io.clj#L152" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/9cd7b155149c6e20b799528c6d5bf2f0e553e9f3/src/main/clojure/clojure/contrib/io.clj#L243" id="var-source">Source</a> </div> |