com.caucho.quercus.lib.file
Class LineReader

java.lang.Object
  extended by com.caucho.quercus.lib.file.LineReader

public class LineReader
extends java.lang.Object

A helper class that handles line endings when reading from a BinaryInput.


Constructor Summary
LineReader(Env env)
           
 
Method Summary
 StringValue readLine(Env env, BinaryInput input, long length)
          Reads a line from the BinaryInput, returning null on EOF.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineReader

public LineReader(Env env)
Method Detail

readLine

public StringValue readLine(Env env,
                            BinaryInput input,
                            long length)
                     throws java.io.IOException
Reads a line from the BinaryInput, returning null on EOF.

Throws:
java.io.IOException