jgnash.imports.qif
Class QifReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.BufferedReader
          extended by java.io.LineNumberReader
              extended by jgnash.imports.qif.QifReader
All Implemented Interfaces:
java.io.Closeable, java.lang.Readable

 class QifReader
extends java.io.LineNumberReader

An extended LineNumberReader to help ease the pain of parsing a QIF file

Version:
$Id$
Author:
Craig Cavanaugh

Field Summary
private static boolean debug
           
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
QifReader(java.io.Reader in)
           
 
Method Summary
 void mark()
           
 java.lang.String peekLine()
          Takes a peek at the next line and eats and empty line if found
 java.lang.String readLine()
           
 void reset()
           
 
Methods inherited from class java.io.LineNumberReader
getLineNumber, mark, read, read, setLineNumber, skip
 
Methods inherited from class java.io.BufferedReader
close, markSupported, ready
 
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
 

Field Detail

debug

private static boolean debug
Constructor Detail

QifReader

public QifReader(java.io.Reader in)
Method Detail

mark

public void mark()
          throws java.io.IOException
Throws:
java.io.IOException

reset

public void reset()
           throws java.io.IOException
Overrides:
reset in class java.io.LineNumberReader
Throws:
java.io.IOException

peekLine

public java.lang.String peekLine()
                          throws java.io.IOException
Takes a peek at the next line and eats and empty line if found

Throws:
java.io.IOException

readLine

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