Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Clojure library designed to allow you to easily mmap files via Java's NIO, and to handle files larger than 2GB.
Clojure
branch: master

README.md

Available via clojars
Current stable version: [clj-mmap "1.1.2"]

clj-mmap

A Clojure library designed to allow you to easily mmap files via Java's NIO, and to handle files larger than 2GB.

Usage

(with-open [mapped-file (clj-mmap/get-mmap "/tmp/big_file.txt")]
  (let [some-bytes (clj-mmap/get-bytes mapped-file 0 30)]
    (println (str "First 30 bytes of file, '" (String. some-bytes "UTF-8") "'"))))

Artifacts

clj-mmap artifacts are released to Clojars.

If you are using Maven, add the following repository definition to your pom.xml:

<repository>
  <id>clojars</id>
  <url>http://clojars.org/repo</url>
</repository>

The Most Recent Release

With Leiningen:

[clj-mmap "1.1.2"]

With Maven:

<dependency>
  <groupId>clj-mmap</groupId>
  <artifactId>clj-mmap</artifactId>
  <version>1.1.2</version>
</dependency>

License

MIT http://opensource.org/licenses/MIT

I'd also like to thank my employer, Gracenote, for allowing me to create this open source port.

Copyright (C) 2012-2013 Alan Busby

Something went wrong with that request. Please try again.