net.sf.jpkgmk.util
Class LineCountingReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.BufferedReader
          extended by net.sf.jpkgmk.util.LineCountingReader
All Implemented Interfaces:
java.io.Closeable, java.lang.Readable

public class LineCountingReader
extends java.io.BufferedReader

Since:
1.0
Version:
$Revision: 2 $ $Date: 2008-08-20 21:14:19 +0200 (Mi, 20 Aug 2008) $
Author:
gommma (gommma AT users.sourceforge.net), Last changed by: $Author: gommma $

Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
LineCountingReader(java.io.Reader reader)
           
 
Method Summary
 int currentLineNumber()
           
 java.lang.String readLine()
           
 
Methods inherited from class java.io.BufferedReader
close, mark, markSupported, read, read, ready, reset, skip
 
Methods inherited from class java.io.Reader
read, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineCountingReader

public LineCountingReader(java.io.Reader reader)
Method Detail

readLine

public java.lang.String readLine()
                          throws java.io.IOException
Overrides:
readLine in class java.io.BufferedReader
Throws:
java.io.IOException

currentLineNumber

public int currentLineNumber()


Copyright © 2007-2008. All Rights Reserved.