Secure iNet Factory

com.jscape.inet.util
Class LineReader

java.lang.Object
  extended by 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)
           
 
Method Summary
 void close()
           
 long getLineNumber()
           
 boolean hasDelimiter()
          Checks if line delimiter was encountered when reading last line
 java.lang.String readLine()
           
 void safeClose()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineReader

public LineReader(java.io.InputStream in,
                  java.lang.String lineSeparator)
Parameters:
in -
lineSeparator -
Method Detail

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

Secure iNet Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved