Protocols and default Reader types implementation
Protocols and default Reader types implementation
(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
(indexing-reader? rdr)
Returns true if the reader satisfies IndexingReader
Returns true if the reader satisfies IndexingReader
(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-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-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
(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
(input-stream-reader is)
Creates an InputStreamReader from an InputStream
Creates an InputStreamReader from an InputStream
(unread reader ch)
Pushes back a single character on to the stream
Pushes back a single character on to the stream
(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
(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.
(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`.
(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
(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
(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-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-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
(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
(string-reader s)
Creates a StringReader from a given string
Creates a StringReader from a given string
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close