de.hillenbrand.io
Class HConfigurationFileReader
java.lang.Object
de.hillenbrand.io.HConfigurationFileReader
public class HConfigurationFileReader
- extends java.lang.Object
A buffered file reader that omits lines starting with a '#' and empty lines.
Additionally ll lines are trimmed by default.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HConfigurationFileReader
public HConfigurationFileReader(java.lang.String file)
throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
HConfigurationFileReader
public HConfigurationFileReader(java.io.File file)
throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
HConfigurationFileReader
public HConfigurationFileReader(java.lang.String dir,
java.lang.String file)
throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
readLine
public java.lang.String readLine()
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
getCurrentLineNumber
public long getCurrentLineNumber()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object