spis.Util.io
Class SpisFileReader
java.lang.Object
java.io.Reader
java.io.InputStreamReader
java.io.FileReader
spis.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 number | Author (name, e-mail) | Corrections/Modifications |
0.1 | JF Roussel, roussel@onecert.fr | Creation |
- Version:
- 0.1
- Author:
- JF Roussel
Fields inherited from class java.io.InputStreamReader |
|
Fields inherited from class java.io.Reader |
lock |
Constructor Summary |
SpisFileReader(java.lang.String fileName)
Creates a new SpisFileReader, given the name of the file to read from |
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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