Liking cljdoc? Tell your friends :D

clojure.tools.reader.reader-types

Protocols and default Reader types implementation

Protocols and default Reader types implementation
raw docstring

indexing-push-back-readerclj

(indexing-push-back-reader s-or-rdr)
(indexing-push-back-reader s-or-rdr buf-len)
(indexing-push-back-reader s-or-rdr buf-len file-name)

Creates an IndexingPushbackReader from a given string or PushbackReader

Creates an IndexingPushbackReader from a given string or PushbackReader
sourceraw docstring

indexing-reader?clj

(indexing-reader? rdr)

Returns true if the reader satisfies IndexingReader

Returns true if the reader satisfies IndexingReader
sourceraw docstring

IndexingReadercljprotocol

get-column-numberclj

(get-column-number reader)

Returns the column number of the next character to be read from the stream

Returns the column number of the next character to be read from the stream

get-file-nameclj

(get-file-name reader)

Returns the file name the reader is reading from, or nil

Returns the file name the reader is reading from, or nil

get-line-numberclj

(get-line-number reader)

Returns the line number of the next character to be read from the stream

Returns the line number of the next character to be read from the stream
source

input-stream-push-back-readerclj

(input-stream-push-back-reader is)
(input-stream-push-back-reader is buf-len)

Creates a PushbackReader from a given InputStream

Creates a PushbackReader from a given InputStream
sourceraw docstring

input-stream-readerclj

(input-stream-reader is)

Creates an InputStreamReader from an InputStream

Creates an InputStreamReader from an InputStream
sourceraw docstring

IPushbackReadercljprotocol

unreadclj

(unread reader ch)

Pushes back a single character on to the stream

Pushes back a single character on to the stream
source

line-start?clj

(line-start? rdr)

Returns true if rdr is an IndexingReader and the current char starts a new line

Returns true if rdr is an IndexingReader and the current char starts a new line
sourceraw docstring

log-sourcecljmacro

(log-source reader & body)

If reader is a SourceLoggingPushbackReader, execute body in a source logging context. Otherwise, execute body, returning the result.

If reader is a SourceLoggingPushbackReader, execute body in a source
logging context. Otherwise, execute body, returning the result.
sourceraw docstring

log-source*clj

(log-source* reader f)
source

merge-metaclj

(merge-meta obj m)

Returns an object of the same type and value as obj, with its metadata merged over m.

Returns an object of the same type and value as `obj`, with its
metadata merged over `m`.
sourceraw docstring

push-back-readerclj

(push-back-reader rdr)
(push-back-reader rdr buf-len)

Creates a PushbackReader from a given reader or string

Creates a PushbackReader from a given reader or string
sourceraw docstring

PushbackReaderCoercercljprotocol

to-pbrclj

(to-pbr rdr buf-len)
source

read-lineclj

(read-line)
(read-line rdr)

Reads a line from the reader or from in if no reader is specified

Reads a line from the reader or from *in* if no reader is specified
sourceraw docstring

Readercljprotocol

peek-charclj

(peek-char reader)

Returns the next char from the Reader without removing it from the reader stream

Returns the next char from the Reader without removing it from the reader stream

read-charclj

(read-char reader)

Returns the next char from the Reader, nil if the end of stream has been reached

Returns the next char from the Reader, nil if the end of stream has been reached
source

ReaderCoercercljprotocol

to-rdrclj

(to-rdr rdr)
source

source-logging-push-back-readerclj

(source-logging-push-back-reader s-or-rdr)
(source-logging-push-back-reader s-or-rdr buf-len)
(source-logging-push-back-reader s-or-rdr buf-len file-name)

Creates a SourceLoggingPushbackReader from a given string or PushbackReader

Creates a SourceLoggingPushbackReader from a given string or PushbackReader
sourceraw docstring

source-logging-reader?clj

(source-logging-reader? rdr)
source

string-push-back-readerclj

(string-push-back-reader s)
(string-push-back-reader s buf-len)

Creates a PushbackReader from a given string

Creates a PushbackReader from a given string
sourceraw docstring

string-readerclj

(string-reader s)

Creates a StringReader from a given string

Creates a StringReader from a given string
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close