Skip to content
A Clojure library designed to allow you to easily mmap files via Java's NIO, and to handle files larger than 2GB.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc
src
test/clj_mmap
.gitignore
README.md
project.clj

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

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.