org.jscience.physics.nuclear.kinematics
Class ColumnarTextReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.InputStreamReader
          extended by org.jscience.physics.nuclear.kinematics.ColumnarTextReader
All Implemented Interfaces:
java.io.Closeable, java.lang.Readable

public class ColumnarTextReader
extends java.io.InputStreamReader

Class for reading in spreadsheet-style text files.


Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
ColumnarTextReader(java.io.InputStream is)
          Creates a new ColumnarTextReader object.
 
Method Summary
 void nextLine()
          DOCUMENT ME!
 double readDouble(int len)
          DOCUMENT ME!
 int readInt(int len)
          DOCUMENT ME!
 java.lang.String readString(int len)
          DOCUMENT ME!
 void skipChars(int len)
          DOCUMENT ME!
 
Methods inherited from class java.io.InputStreamReader
close, getEncoding, read, read, ready
 
Methods inherited from class java.io.Reader
mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnarTextReader

public ColumnarTextReader(java.io.InputStream is)
                   throws java.io.FileNotFoundException,
                          java.io.IOException
Creates a new ColumnarTextReader object.

Parameters:
is - DOCUMENT ME!
Throws:
java.io.FileNotFoundException - DOCUMENT ME!
java.io.IOException - DOCUMENT ME!
Method Detail

nextLine

public void nextLine()
              throws java.io.IOException
DOCUMENT ME!

Throws:
java.io.IOException - DOCUMENT ME!

readString

public java.lang.String readString(int len)
                            throws java.io.IOException
DOCUMENT ME!

Parameters:
len - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

readInt

public int readInt(int len)
            throws java.io.IOException
DOCUMENT ME!

Parameters:
len - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

readDouble

public double readDouble(int len)
                  throws java.io.IOException
DOCUMENT ME!

Parameters:
len - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

skipChars

public void skipChars(int len)
               throws java.io.IOException
DOCUMENT ME!

Parameters:
len - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!