com.jscape.inet.util
Class LineReader
java.lang.Object
com.jscape.inet.util.LineReader
public class LineReader
- extends java.lang.Object
- Version:
- 1.0
- Author:
- Alex Usun
Constructor Summary |
LineReader(java.io.InputStream in,
java.lang.String lineSeparator)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LineReader
public LineReader(java.io.InputStream in,
java.lang.String lineSeparator)
- Parameters:
in
- lineSeparator
-
readLine
public java.lang.String readLine()
throws java.io.IOException
- Returns:
- String line
- Throws:
java.io.IOException
getLineNumber
public long getLineNumber()
- Returns:
- line number
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
safeClose
public void safeClose()
hasDelimiter
public boolean hasDelimiter()
- Checks if line delimiter was encountered when reading last line
- Returns:
- true if delimiter was found, false otherwise
Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved