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

  • 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

  • input-stream

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

M

  • make-parents

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

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...

W

  • writer

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