Skip to content

thebusby/clj-mmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published