GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - clojure/data.codec: Native codec implementations

BranchesTags
Open more actions menu

Latest commit

 

History

59 Commits
59 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
src
src
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
epl.html
epl.html
 
 
pom.xml
pom.xml
 
 
project.clj
project.clj
 
 

Repository files navigation

data.codec

Native codec implementations. Currently only base64 has been implemented.

API documentation: https://clojure.github.io/data.codec

base64

NOTE: Superseded by Base64, included in the JDK since Java 8.

Implements the standard base64 encoding character set, but does not yet support automatic fixed line-length encoding.

All operations work on either byte arrays or Input/OutputStreams.

Performance is on par with Java implementations, e.g., Apache commons-codec.

Example Usage

Transform a binary file into a base64 encoded file:

(require '[clojure.data.codec.base64 :as b64]
         '[clojure.java.io :as io])

(with-open [in (io/input-stream "input.bin")
            out (io/output-stream "output.b64")]
  (b64/encoding-transfer in out))

Installation

The data.codec library is available in Maven central. Add it to your Maven project's pom.xml:

<dependency>
  <groupId>org.clojure</groupId>
  <artifactId>data.codec</artifactId>
  <version>0.2.1</version>
</dependency>

or your leiningen project.clj:

[org.clojure/data.codec "0.2.1"]

License

Copyright © Alex Taggart, Rich Hickey, and contributors

Licensed under the EPL. (See the file epl.html.)

About

Native codec implementations

clojure.org

Resources

Readme
EPL-1.0 license

Contributing

Contributing
Activity
Custom properties

Stars

78 stars

Watchers

26 watching

Forks

13 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.