Skip to content

Commit

Permalink
move namespaces under flatland
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjudd committed Nov 14, 2012
1 parent 46d0842 commit 7049d06
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 14 deletions.
7 changes: 3 additions & 4 deletions project.clj
@@ -1,9 +1,8 @@
(defproject io "0.2.1"
(defproject org.flatland/io "0.2.2-SNAPSHOT"
:description "The innermost moon of Jupiter."
:url "https://github.com/flatland/io"
:license {:name "Eclipse Public License - v 1.0"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.3.0"]]
:java-source-paths ["src/java"]
:source-paths ["src/clj"]
:dependencies [[org.clojure/clojure "1.4.0"]]
:java-source-paths ["src"]
:javac-options ["-target" "1.5" "-source" "1.5"])
4 changes: 2 additions & 2 deletions src/clj/io/core.clj → src/flatland/io/core.clj
@@ -1,9 +1,9 @@
(ns io.core
(ns flatland.io.core
(:use [clojure.java.io :only [default-streams-impl input-stream IOFactory]])
(:import (java.nio ByteBuffer)
(java.io SequenceInputStream)
(clojure.lang SeqEnumeration Seqable)
(io.core InputStream InputStreamable)))
(flatland.io.core InputStream InputStreamable)))

(defn bytebuffer->inputstream [^ByteBuffer buf opts]
(InputStream.
Expand Down
@@ -1,4 +1,4 @@
package io.core;
package flatland.io.core;

public class InputStream extends java.io.InputStream {
final InputStreamable in;
Expand Down Expand Up @@ -41,4 +41,4 @@ public long skip(long n){
public void close(){
in.close();
}
}
}
@@ -1,4 +1,4 @@
package io.core;
package flatland.io.core;

public interface InputStreamable {
public int read(byte[] b, int off, int len);
Expand Down
@@ -1,4 +1,4 @@
package io.core;
package flatland.io.core;

public class OutputStream extends java.io.OutputStream {
final OutputStreamable out;
Expand Down Expand Up @@ -28,4 +28,4 @@ public void flush(){
public void close(){
out.close();
}
}
}
@@ -1,4 +1,4 @@
package io.core;
package flatland.io.core;

public interface OutputStreamable {
public void write(byte[] b, int off, int len);
Expand Down
4 changes: 2 additions & 2 deletions test/io/core_test.clj → test/flatland/io/core_test.clj
@@ -1,6 +1,6 @@
(ns io.core-test
(ns flatland.io.core-test
(:use clojure.test
io.core
flatland.io.core
[clojure.java.io :only [input-stream]])
(:import (java.nio ByteBuffer)))

Expand Down

0 comments on commit 7049d06

Please sign in to comment.