public class FileReaderImpl extends java.lang.Object implements FileReader
Constructor and Description |
---|
FileReaderImpl(java.lang.String filename) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.lang.String |
getFileName() |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
int |
readInteger() |
long |
readLong() |
short |
readShort() |
java.lang.String |
readString() |
public FileReaderImpl(java.lang.String filename) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public boolean readBoolean() throws java.io.IOException
readBoolean
in interface FileReader
java.io.IOException
public byte readByte() throws java.io.IOException
readByte
in interface FileReader
java.io.IOException
public char readChar() throws java.io.IOException
readChar
in interface FileReader
java.io.IOException
public short readShort() throws java.io.IOException
readShort
in interface FileReader
java.io.IOException
public int readInteger() throws java.io.IOException
readInteger
in interface FileReader
java.io.IOException
public float readFloat() throws java.io.IOException
readFloat
in interface FileReader
java.io.IOException
public long readLong() throws java.io.IOException
readLong
in interface FileReader
java.io.IOException
public double readDouble() throws java.io.IOException
readDouble
in interface FileReader
java.io.IOException
public java.lang.String readString() throws java.io.IOException
readString
in interface FileReader
java.io.IOException
public void close() throws java.io.IOException
close
in interface FileReader
java.io.IOException
public java.lang.String getFileName()
getFileName
in interface FileReader