spis.Util.io
Class SpisFileReader

java.lang.Object
  extended byjava.io.Reader
      extended byjava.io.InputStreamReader
          extended byjava.io.FileReader
              extended byspis.Util.io.SpisFileReader

public class SpisFileReader
extends java.io.FileReader

Class Name : SpisFileReader
Project ref : SPIS project
File name : SpisFileReader.java
File type : class
Copyright : ONERA, 2 Av. E. Belin, 31055 Toulouse cedex, France http://www.onecert.fr
Status : under development
Creation : 28 sept. 2004
Modification :

Description : derived from Java FileReader, which can read characters, with the extra capability to read floats, integers and strings.

Versions and anomalies correction :

Version numberAuthor (name, e-mail) Corrections/Modifications
0.1 JF Roussel, roussel@onecert.frCreation


Version:
0.1
Author:
JF Roussel

Constructor Summary
SpisFileReader(java.lang.String fileName)
          Creates a new SpisFileReader, given the name of the file to read from
 
Method Summary
 char readChar()
           
 float readFloat()
          reads and returns a float
 int readInteger()
          reads and returns an integer, coded in decimal
 java.lang.String readString()
           
 
Methods inherited from class java.io.InputStreamReader
close, getEncoding, read, read, ready
 
Methods inherited from class java.io.Reader
mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpisFileReader

public SpisFileReader(java.lang.String fileName)
               throws java.io.FileNotFoundException
Creates a new SpisFileReader, given the name of the file to read from

Parameters:
fileName -
Throws:
java.io.FileNotFoundException
Method Detail

readChar

public char readChar()
              throws java.io.IOException
Throws:
java.io.IOException

readString

public java.lang.String readString()
                            throws java.io.IOException
Throws:
java.io.IOException

readInteger

public int readInteger()
                throws java.io.IOException
reads and returns an integer, coded in decimal

Throws:
java.io.IOException

readFloat

public float readFloat()
                throws java.io.IOException
reads and returns a float

Throws:
java.io.IOException