no.uio.labmed.pybliographer
Class DataFileReader

java.lang.Object
  |
  +--no.uio.labmed.pybliographer.DataFileReader
Direct Known Subclasses:
PybReader

public class DataFileReader
extends java.lang.Object

Buffered reader with methods for reading data files.


Constructor Summary
DataFileReader()
           
 
Method Summary
 boolean checkKey(java.lang.String key)
           
 void close()
           
 boolean eof()
           
 int getInt()
           
 int getInt(int n)
           
 int getInt(int i, int n)
           
 int getInt(java.lang.String t)
           
 float getNum()
           
 float getNum(int n)
           
 float getNum(int i, int n)
           
 float getNum(java.lang.String t)
           
 java.lang.String getValue()
           
 boolean hasKey(java.lang.String key)
           
 boolean hasValue(int n)
           
 java.lang.String line()
           
 void nextLine()
           
 void open(java.io.InputStream stream)
           
 void open(java.io.Reader rd)
           
 void open(java.lang.String filename)
           
 DataFileReader pos(int i)
           
 java.lang.String readLine()
           
 java.lang.String rest()
           
 DataFileReader skip(int n)
           
 java.lang.String sub(int n)
           
 java.lang.String sub(int i, int n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataFileReader

public DataFileReader()
Method Detail

open

public void open(java.io.Reader rd)

open

public void open(java.io.InputStream stream)

open

public void open(java.lang.String filename)
          throws java.io.FileNotFoundException
java.io.FileNotFoundException

close

public void close()

readLine

public java.lang.String readLine()

nextLine

public void nextLine()

eof

public boolean eof()

hasKey

public boolean hasKey(java.lang.String key)

checkKey

public boolean checkKey(java.lang.String key)

hasValue

public boolean hasValue(int n)

pos

public DataFileReader pos(int i)

skip

public DataFileReader skip(int n)

line

public java.lang.String line()

rest

public java.lang.String rest()

getValue

public java.lang.String getValue()

sub

public java.lang.String sub(int n)

sub

public java.lang.String sub(int i,
                            int n)

getInt

public int getInt()

getInt

public int getInt(java.lang.String t)

getInt

public int getInt(int n)

getInt

public int getInt(int i,
                  int n)

getNum

public float getNum()

getNum

public float getNum(java.lang.String t)

getNum

public float getNum(int n)

getNum

public float getNum(int i,
                    int n)