I/O
CSV
4- value
clojure.data.csv
Reads CSV-data from input (String or java.io.Reader) into a lazy sequence of vectors. Valid options are :sepa...
functionclojure.data.csv
- protocol-method
clojure.data.csv
Writes data to writer in CSV-format. Valid options are :separator (Default \,) :quote (Default \") :q...
functionclojure.data.csv
EDN
2Reads the next object from stream, which must be an instance of java.io.PushbackReader or some derivee. stream defaul...
functionclojure.edn
Reads one object from the string s. Returns nil when s is nil or empty. Reads data in the edn format (subset of Cloju...
functionclojure.edn
- value
clojure.java.shell
- value
clojure.java.shell
Coerce between various 'resource-namish' things.
valueclojure.java.io
Factory functions that create ready-to-use, buffered versions of the various Java I/O stream types, on top of anythin...
valueclojure.java.io
Coerce argument to a file.
protocol-methodclojure.java.io
Take an as-file-able thing and return a string if it is a relative path, else IllegalArgumentException.
functionclojure.java.io
Coerce argument to a URL.
protocol-methodclojure.java.io
Copies input to output. Returns nil or throws IOException. Input may be an InputStream, Reader, File, byte[], char[],...
functionclojure.java.io
- value
clojure.java.io
Delete file f. If silently is nil or false, raise an exception on failure, else return the value of silently.
functionclojure.java.io
Execute a command and on successful exit, return the captured output, else throw RuntimeException. Args are the same a...
functionclojure.java.process
Given a Process (the output of 'start'), return a reference that can be used to wait for process completion then retur...
functionclojure.java.process
Returns a java.io.File, passing each arg to as-file. Multiple-arg versions treat the first argument as parent and su...
functionclojure.java.io
A tree seq on java.io.Files
functionclojure.core
Coerce f to a file per clojure.java.io/file and return a ProcessBuilder.Redirect reading from the file. This can be pa...
functionclojure.java.process
Attempts to coerce its argument into an open java.io.InputStream. Default implementations always return a java.io.Buf...
functionclojure.java.io
- function
clojure.java.process
Returns the lines of text from rdr as a lazy sequence of strings. rdr must implement java.io.BufferedReader.
functionclojure.core
Creates a BufferedInputStream. See also IOFactory docs.
protocol-methodclojure.java.io
Creates a BufferedOutputStream. See also IOFactory docs.
protocol-methodclojure.java.io
Given the same arg(s) as for file, creates all parent directories of the file they represent.
functionclojure.java.io
Creates a BufferedReader. See also IOFactory docs.
protocol-methodclojure.java.io
Creates a BufferedWriter. See also IOFactory docs.
protocol-methodclojure.java.io
Attempts to coerce its argument into an open java.io.OutputStream. Default implementations always return a java.io.Bu...
functionclojure.java.io
Reads the next line from stream that is the current value of *in* .
functionclojure.core
Attempts to coerce its argument into an open java.io.Reader. Default implementations always return a java.io.Buffered...
functionclojure.java.io
Returns the URL for a named resource. Use the context class loader if no loader is specified.
functionclojure.java.io
Passes the given strings to Runtime.exec() to launch a sub-process. Options are :in may be given followed by ...
functionclojure.java.shell
Opens a reader on f and reads all its contents, returning a string. See clojure.java.io/reader for a complete list of ...
functionclojure.core
Opposite of slurp. Opens f with writer, writes content, then closes f. Options passed to clojure.java.io/writer.
functionclojure.core
Start an external command, defined in args. The process environment vars are inherited from the parent by default (u...
functionclojure.java.process
Given a process, return the stderr of the external process (an InputStream)
functionclojure.java.process
Given a process, return the stdin of the external process (an OutputStream)
functionclojure.java.process
Given a process, return the stdout of the external process (an InputStream)
functionclojure.java.process
Coerce f to a file per clojure.java.io/file and return a ProcessBuilder.Redirect writing to the file. Set ':append' in...
functionclojure.java.process
bindings => [name init ...] Evaluates body in a try expression with names bound to the values of the inits, and a f...
macroclojure.core
Sets the directory for use with sh, see sh for details.
macroclojure.java.shell
Sets the environment for use with sh, see sh for details.
macroclojure.java.shell
Attempts to coerce its argument into an open java.io.Writer. Default implementations always return a java.io.Buffered...
functionclojure.java.io
JSON
20Positional factory function for class clojure.data.json.ReaderPBR.
functionclojure.data.json
Positional factory function for class clojure.data.json.StringPBR.
functionclojure.data.json
Print object to Appendable out as JSON
protocol-methodclojure.data.json
- value
clojure.data.json
- value
clojure.data.json
- value
clojure.data.json
- value
clojure.data.json
- function
clojure.data.json
DEPRECATED; replaced by 'write-str'. Converts x to a JSON-formatted string. Valid options are: :escape-unicode...
functionclojure.data.json
Pass as :extra-data-fn to `read` or `read-str` to throw if data is found after the first object.
functionclojure.data.json
Pass as :extra-data-fn to `read` or `read-str` to throw if data is found after the first object and return the remaini...
functionclojure.data.json
Pretty-prints JSON representation of x to *out*. Options are the same as for write except :value-fn and :indent, which...
functionclojure.data.json
DEPRECATED; replaced by 'pprint'. Pretty-prints JSON representation of x to *out*. Valid options are: :escape-...
functionclojure.data.json
DEPRECATED; replaced by 'write' to *out*. Write JSON-formatted output to *out*. Valid options are: :escape-uni...
functionclojure.data.json
Reads a single item of JSON data from a java.io.Reader. If you wish to repeatedly read items from the same reader, yo...
functionclojure.data.json
DEPRECATED; replaced by read-str. Reads one JSON value from input String or Reader. If keywordize? is true (default...
functionclojure.data.json
Reads one JSON value from input String. Options are the same as for read.
functionclojure.data.json
Write JSON-formatted output to a java.io.Writer. Options are key-value pairs, valid options are: :escape-unicode...
functionclojure.data.json
DEPRECATED; replaced by 'write'. Print object to PrintWriter out as JSON
functionclojure.data.json
Converts x to a JSON-formatted string. Options are the same as write.
functionclojure.data.json
Logging
28Overrides the default rules for choosing between logging directly or via an agent. Defaults to nil. See log* for detai...
valueclojure.tools.logging
An instance satisfying the clojure.tools.logging.impl/LoggerFactory protocol, which allows uniform access to an underl...
valueclojure.tools.logging
The default agent used for performing logging when direct logging is disabled. See log* for details.
valueclojure.tools.logging
The set of levels that will require using an agent when logging from within a running transaction. Defaults to #{:info...
valueclojure.tools.logging
- value
clojure.tools.logging
Debug level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.
macroclojure.tools.logging
Debug level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.
macroclojure.tools.logging
Returns true if the specific logging level is enabled. Use of this macro should only be necessary if one needs to exe...
macroclojure.tools.logging
Error level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.
macroclojure.tools.logging
Error level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.
macroclojure.tools.logging
Fatal level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.
macroclojure.tools.logging
Fatal level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.
macroclojure.tools.logging
Info level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.
macroclojure.tools.logging
Info level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.
macroclojure.tools.logging
Evaluates and logs a message only if the specified level is enabled. See log* for more details.
macroclojure.tools.logging
Attempts to log a message, either directly or via an agent; does not check if the level is enabled. For performance...
functionclojure.tools.logging
Captures System.out and System.err, piping all writes of those streams to the log. If unspecified, levels default to...
functionclojure.tools.logging
Creates a PrintStream that will output to the log at the specified level.
functionclojure.tools.logging
Restores System.out and System.err to their original values.
functionclojure.tools.logging
Logs a message using a format string and args. Can optionally take a throwable as its second arg. See level-specific m...
macroclojure.tools.logging
Logs a message using print style args. Can optionally take a throwable as its second arg. See level-specific macros, e...
macroclojure.tools.logging
Evaluates expr and may write the form and its result to the log. Returns the result of expr. Defaults to :debug log le...
macroclojure.tools.logging
Evaluates expr and may write (format fmt result) to the log. Returns the result of expr. Defaults to :debug log level....
macroclojure.tools.logging
Trace level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.
macroclojure.tools.logging
Trace level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.
macroclojure.tools.logging
Warn level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.
macroclojure.tools.logging
Warn level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.
macroclojure.tools.logging
Evaluates exprs in a context in which *out* and *err* write to the log. The specified logger-ns value will be used to ...
macroclojure.tools.logging
The base to use for printing integers and rationals.
valueclojure.pprint
The column at which to enter miser style. Depending on the dispatch table, miser style add newlines in more places to t...
valueclojure.pprint
The pretty print dispatch function. Use with-pprint-dispatch or set-pprint-dispatch to modify.
multimethodclojure.pprint
Bind to true if you want write to use pretty printing
valueclojure.pprint
Print a radix specifier in front of integers and rationals. If *print-base* is 2, 8, or 16, then the radix specifier us...
valueclojure.pprint
Pretty printing will try to avoid anything going beyond this column. Set it to nil to have pprint let the line be arbitr...
valueclojure.pprint
Don't print namespaces with symbols. This is particularly useful when pretty printing the results of macro expansions
valueclojure.pprint
An implementation of a Common Lisp compatible format function. cl-format formats its arguments to an output stream or st...
functionclojure.pprint
The pretty print dispatch function for pretty printing Clojure code.
multimethodclojure.pprint
Makes a function which can directly run format-in. The function is fn [stream & args] ... and returns nil unless the str...
macroclojure.pprint
Makes a function which can directly run format-in. The function is fn [& args] ... and returns nil. This version of the ...
macroclojure.pprint
Make a newline if *out* is not already at the beginning of the line. If *out* is not a pretty writer (which keeps track ...
functionclojure.pprint
Returns the java.io.Writer passed in wrapped in a pretty writer proxy, unless it's already a pretty writer. Generally, ...
functionclojure.pprint
A convenience macro that pretty prints the last thing output. This is exactly equivalent to (pprint *1).
macroclojure.pprint
Pretty print object to the optional output writer. If the writer is not provided, print the object to the currently bou...
functionclojure.pprint
Create an indent at this point in the pretty printing stream. This defines how following lines are indented. relative-t...
functionclojure.pprint
Execute the body as a pretty printing logical block with output to *out* which must be a pretty printing writer. When u...
macroclojure.pprint
Print a conditional newline to a pretty printing stream. kind specifies if the newline is :linear, :miser, :fill, or :m...
functionclojure.pprint
Tab at this point in the pretty printing stream. kind specifies whether the tab is :line, :section, :line-relative, or :...
functionclojure.pprint
A version of loop that iterates at most *print-length* times. This is designed for use in pretty-printer dispatch funct...
macroclojure.pprint
Prints a collection of maps in a textual table. Prints table headings ks, and then a line of output for each row, cor...
functionclojure.pprint
Set the pretty print dispatch function to a function matching (fn [obj] ...) where obj is the object to pretty print. Th...
functionclojure.pprint
The pretty print dispatch function for simple data structure format.
multimethodclojure.pprint
Execute body with the pretty print dispatch function bound to function.
macroclojure.pprint
Write an object subject to the current bindings of the printer control variables. Use the kw-args argument to override i...
functionclojure.pprint
Write an object to *out* subject to the current bindings of the printer control variables. Use the kw-args argument to ...
functionclojure.pprint
Printing
16Flushes the output stream that is the current value of *out*
functionclojure.core
Writes a platform-specific newline to *out*
functionclojure.core
Prints the object(s) to the output stream that is the current value of *out*. Prints the object(s), separated by spac...
functionclojure.core
pr to a string, returning it
functionclojure.core
Prints the object(s) to the output stream that is the current value of *out*. print and println produce output for hu...
functionclojure.core
- function
clojure.core
- multimethod
clojure.core
- multimethod
clojure.core
- function
clojure.core
print to a string, returning it
functionclojure.core
Prints formatted output, as per format
functionclojure.core
Same as print followed by (newline)
functionclojure.core
println to a string, returning it
functionclojure.core
Same as pr followed by (newline). Observes *flush-on-newline*
functionclojure.core
prn to a string, returning it
functionclojure.core
Evaluates exprs in a context in which *out* is bound to a fresh StringWriter. Returns the string created by any neste...
macroclojure.core
Reader
17Map from ns alias to ns, if non-nil, it will be used to resolve read-time ns aliases instead of (ns-aliases *ns*). ...
valueclojure.tools.reader
Map from reader tag symbols to data reader Vars. Reader tags without namespace qualifiers are reserved for Clojure. ...
valueclojure.tools.reader
When no data reader is found for a tag and *default-data-reader-fn* is non-nil, it will be called with two arguments,...
valueclojure.tools.reader
- value
clojure.tools.reader
Defaults to true. ***WARNING*** This setting implies that the full power of the reader is in play, including s...
valueclojure.tools.reader
- value
clojure.tools.reader
Default map of data reader functions provided by Clojure. May be overridden by binding *data-readers*
valueclojure.tools.reader
Decide which map type to use, array-map if less than 16 elements
functionclojure.tools.reader
Reads the first object from an IPushbackReader or a java.io.PushbackReader. Returns the object read. If EOF, throws i...
functionclojure.tools.reader
Reads the first object from an IPushbackReader or a java.io.PushbackReader. Returns the object read. If EOF, throws i...
functionclojure.tools.reader.edn
Like read, and taking the same args. reader must be a SourceLoggingPushbackReader. Returns a vector containing the obj...
functionclojure.tools.reader
- function
clojure.tools.reader
Reads one object from the string s. Returns nil when s is nil or empty. ***WARNING*** Note that read-string ca...
functionclojure.tools.reader
Reads one object from the string s. Returns nil when s is nil or empty. Reads data in the edn format (subset of C...
functionclojure.tools.reader.edn
- function
clojure.tools.reader
Resolve a symbol s into its fully qualified namespace version
functionclojure.tools.reader
Macro equivalent to the syntax-quote reader macro (`).
macroclojure.tools.reader
Reads the next object from stream, which must be an instance of java.io.PushbackReader or some derivee. stream defaul...
functionclojure.core
Like read, and taking the same args. stream must be a LineNumberingPushbackReader. Returns a vector containing the obj...
functionclojure.core
Reads one object from the string s. Optionally include reader options, as specified in read. Note that read-string ...
functionclojure.core
XML
62- value
clojure.xml
- value
clojure.xml
- value
clojure.xml
- value
clojure.xml
Positional factory function for class clojure.data.xml.event.CDataEvent.
functionclojure.data.xml.event
Positional factory function for class clojure.data.xml.event.CharsEvent.
functionclojure.data.xml.event
Positional factory function for class clojure.data.xml.event.CommentEvent.
functionclojure.data.xml.event
Positional factory function for class clojure.data.xml.event.EmptyElementEvent.
functionclojure.data.xml.event
- function
clojure.data.xml.event
Positional factory function for class clojure.data.xml.event.QNameEvent.
functionclojure.data.xml.event
Positional factory function for class clojure.data.xml.event.StartElementEvent.
functionclojure.data.xml.event
Define a Clojure namespace aliases for xmlns uris. This sets up the current namespace for reading qnames denoted with...
functionclojure.data.xml.name
- function
clojure.data.xml.name
- value
clojure.xml
Create a CData node
functionclojure.data.xml.node
- value
clojure.xml
- value
clojure.xml
Modifies a SAXParser to disable external entity resolution to prevent XXE attacks
functionclojure.xml
Create an xml Element from content varargs
functionclojure.data.xml.node
- value
clojure.xml
Create an xml element from a content collection and optional metadata
functionclojure.data.xml.node
Get xmlns environment from element
functionclojure.data.xml.event
- function
clojure.data.xml.event
- function
clojure.data.xml.node
Prints the given Element tree as XML text to stream. Options: :encoding <str> Character encoding to use ...
functionclojure.data.xml
- function
clojure.xml
- function
clojure.xml
Emits the Element to String and returns it. Options: :encoding <str> Character encoding to use :doct...
functionclojure.data.xml
- value
clojure.data.xml.event
- function
clojure.data.xml.event
- function
clojure.data.xml.event
- function
clojure.data.xml.event
Parses an XML input source into a lazy sequence of pull events. Input source can be a java.io.InputStream or java.io.Re...
functionclojure.data.xml
Returns a lazy tree of Element objects for the given seq of Event objects. See source-seq and parse.
functionclojure.data.xml.tree
Flatten a collection of elements to an event seq
functionclojure.data.xml.tree
Emits the XML and indents the result. WARNING: this is slow it will emit the XML and read it in again to indent it. ...
functionclojure.data.xml
Emits the XML and indents the result. Writes the results to a String and returns it
functionclojure.data.xml
Factory function for class clojure.data.xml.event.CDataEvent, taking a map of keywords to field values.
functionclojure.data.xml.event
Factory function for class clojure.data.xml.event.CharsEvent, taking a map of keywords to field values.
functionclojure.data.xml.event
Factory function for class clojure.data.xml.event.CommentEvent, taking a map of keywords to field values.
functionclojure.data.xml.event
Factory function for class clojure.data.xml.event.EmptyElementEvent, taking a map of keywords to field values.
functionclojure.data.xml.event
Factory function for class clojure.data.xml.event.QNameEvent, taking a map of keywords to field values.
functionclojure.data.xml.event
Factory function for class clojure.data.xml.event.StartElementEvent, taking a map of keywords to field values.
functionclojure.data.xml.event
Parses an XML input source into a a tree of Element records. The element tree is realized lazily, so huge XML files can ...
functionclojure.data.xml
Parses and loads the source s, which can be a File, InputStream or String naming a URI. Returns a tree of the xml/elem...
functionclojure.xml
- function
clojure.data.xml.jvm.name
Parses an XML String into a a tree of Element records. Options: :include-node? subset of #{:element :characters :com...
functionclojure.data.xml
Shell command to create a dummy file for xmlns. Execute from a source root.
functionclojure.data.xml.name
- function
clojure.data.xml.name
Get the name for this qname
functionclojure.data.xml.name
Get the namespace uri for this qname
functionclojure.data.xml.name
Create a new SAXParser
functionclojure.xml
Takes a seq of events that logically represents a tree by each event being one of: enter-sub-tree event, exit-sub-tr...
functionclojure.data.xml.tree
Convert a single sexp into an Element
functionclojure.data.xml.prxml
Convert a compact prxml/hiccup-style data structure into the more formal tag/attrs/content format. A seq of elements ...
functionclojure.data.xml.prxml
A startparse function suitable for use with clojure.xml/parse. Note that this function is open to XXE entity attacks, ...
functionclojure.xml
A startparse function suitable for use with clojure.xml/parse. External entity resolution is disabled to prevent XXE e...
functionclojure.xml
- function
clojure.data.xml.name
- value
clojure.xml
Dummy file name for :require'ing xmlns uri
functionclojure.data.xml.name
- function
clojure.data.xml.name
Create a Comment node
functionclojure.data.xml.node