Skip to main content

clojure.java.io

A

  • as-file

    Coerce argument to a file.

  • as-relative-path

    Take an as-file-able thing and return a string if it is a relative path, else IllegalArgumentException.

  • as-url

    Coerce argument to a URL.

C

  • Coercions

    Coerce between various 'resource-namish' things.

  • copy

    Copies input to output. Returns nil or throws IOException. Input may be an InputStream, Reader, File, byte[], char[],...

D

  • delete-file

    Delete file f. If silently is nil or false, raise an exception on failure, else return the value of silently.

F

  • file

    Returns a java.io.File, passing each arg to as-file. Multiple-arg versions treat the first argument as parent and su...

I

  • IOFactory

    Factory functions that create ready-to-use, buffered versions of the various Java I/O stream types, on top of anythin...

  • input-stream

    Attempts to coerce its argument into an open java.io.InputStream. Default implementations always return a java.io.Buf...

M

  • make-input-stream

    Creates a BufferedInputStream. See also IOFactory docs.

  • make-output-stream

    Creates a BufferedOutputStream. See also IOFactory docs.

  • make-parents

    Given the same arg(s) as for file, creates all parent directories of the file they represent.

  • make-reader

    Creates a BufferedReader. See also IOFactory docs.

  • make-writer

    Creates a BufferedWriter. See also IOFactory docs.

O

  • output-stream

    Attempts to coerce its argument into an open java.io.OutputStream. Default implementations always return a java.io.Bu...

R

  • reader

    Attempts to coerce its argument into an open java.io.Reader. Default implementations always return a java.io.Buffered...

  • resource

    Returns the URL for a named resource. Use the context class loader if no loader is specified.

W

  • writer

    Attempts to coerce its argument into an open java.io.Writer. Default implementations always return a java.io.Buffered...