Created
September 16, 2011 05:48
-
-
Save anonymous/1221294 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<amalloy> (find-doc "input-stream") | |
<lazybot> => ------------------------- clojure.java.io/IOFactory nil | |
Factory functions that create ready-to-use, buffered versions of | |
the various Java I/O stream types, on top of anything that can be | |
unequivocally converted to the requested kind of stream. Common | |
options include :append true to open stream in append mode | |
:encoding string name of encoding to use, e.g. "UTF-8". Callers | |
should generally prefer the higher level API provided by reader, | |
writer, input-stream, and output-stream. ------------------------- | |
clojure.java.io/input-stream ([x & opts]) Attempts to coerce its | |
argument into an open java.io.InputStream. Default implementations | |
always return a java.io.BufferedInputStream. Default | |
implementations are defined for OutputStream, File, URI, URL, | |
Socket, byte array, and String arguments. If the 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 InputStream | |
is properly closed. ------------------------- clojure.java.io/make-input-stream | |
([x opts]) Creates a BufferedInputStream. See also IOFactory docs. | |
------------------------- clojure.contrib.io/input-stream ([x]) | |
Attempts to coerce its argument into an open java.io.InputStream. | |
The default implementations of this protocol always return a | |
java.io.BufferedInputStream. Default implementations are defined | |
for OutputStream, File, URI, URL, Socket, byte array, and String | |
arguments. If the 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 InputStream is properly closed. | |
nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment