org.apache.commons.ssl.util
Class ReadLine

java.lang.Object
  extended by org.apache.commons.ssl.util.ReadLine
Direct Known Subclasses:
ByteArrayReadLine

public class ReadLine
extends Object

Author:
Julius Davies, 23-Dec-2007

Field Summary
(package private)  int avail
           
(package private)  byte[] bytes
           
(package private)  InputStream in
           
(package private)  int pos
           
 
Constructor Summary
ReadLine(InputStream in)
           
 
Method Summary
 String next()
           
 String next(int lines)
           
 byte[] nextAsBytes()
           
 byte[] nextAsBytes(int lines)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

final InputStream in

bytes

final byte[] bytes

pos

int pos

avail

int avail
Constructor Detail

ReadLine

public ReadLine(InputStream in)
Method Detail

next

public String next()
            throws IOException
Throws:
IOException

next

public String next(int lines)
            throws IOException
Throws:
IOException

nextAsBytes

public byte[] nextAsBytes()
                   throws IOException
Throws:
IOException

nextAsBytes

public byte[] nextAsBytes(int lines)
                   throws IOException
Throws:
IOException