API for base64 - clojure-contrib v1.1 (stable)

by Stuart Sierra

clojure-contrib is now deprecated

clojure-contrib is no longer being developed or maintained.

Rather than a single, monolithic, contributions library, Clojure now has a set of separate libraries for each unit of functionality. The libraries are in the Clojure GitHub organization at https://github.com/clojure. API documentation of the libraries can be found at https://clojure.github.io.

If you're looking for a specific function or namespace from the old clojure-contrib, see "Where Did Clojure.Contrib Go".


Full namespace name: clojure.contrib.base64

Overview

Base-64 encoding and (maybe later) decoding.

This is mainly here as an example.  It is much slower than the
Apache Commons Codec implementation or sun.misc.BASE64Encoder.

Public Variables and Functions



encode

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (encode input output alphabet line-length)
Encodes bytes of input, writing Base 64 text on output.  alphabet
is a 65-character String containing the 64 characters to use in the
encoding; the 65th character is the pad character.  line-length is
the maximum number of characters per line, nil for no line breaks.
Source


encode-str

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (encode-str s)
       (encode-str s encoding line-length)
Encodes String in base 64; returns a String.  If not specified,
encoding is UTF-8 and line-length is nil.
Source
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.