Permalink
Browse files

Allow custom buffer size in LineNumberingPushbackReader

Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
  • Loading branch information...
1 parent b5d0e84 commit a085c818965d0046a3a75ad058cf96681fdeded0 @trptcolin trptcolin committed with stuarthalloway Jan 12, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/jvm/clojure/lang/LineNumberingPushbackReader.java
@@ -32,6 +32,10 @@ public LineNumberingPushbackReader(Reader r){
super(new LineNumberReader(r));
}
+public LineNumberingPushbackReader(Reader r, int size){
+ super(new LineNumberReader(r, size));
+}
+
public int getLineNumber(){
return ((LineNumberReader) in).getLineNumber() + 1;
}

0 comments on commit a085c81

Please sign in to comment.