com.mortbay.Util
Class LineInput

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--com.mortbay.Util.LineInput

public class LineInput
extends java.io.InputStream


Constructor Summary
LineInput(java.io.InputStream in)
          Constructor
 
Method Summary
 int available()
           
 void close()
           
static void main(java.lang.String[] args)
           
 void mark(int readlimit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 java.lang.String readLine()
          Read a line ended by CR or CRLF or LF.
 int readLine(byte[] b, int off, int len)
          Read a line ended by CR or CRLF or LF.
 void reset()
           
 long skip(long n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineInput

public LineInput(java.io.InputStream in)
Constructor
Method Detail

main

public static void main(java.lang.String[] args)

readLine

public java.lang.String readLine()
                          throws java.io.IOException
Read a line ended by CR or CRLF or LF.

readLine

public int readLine(byte[] b,
                    int off,
                    int len)
             throws java.io.IOException
Read a line ended by CR or CRLF or LF.

read

public int read()
         throws java.io.IOException
Overrides:
read in class java.io.InputStream

read

public int read(byte[] b)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream

skip

public long skip(long n)
          throws java.io.IOException
Overrides:
skip in class java.io.InputStream

available

public int available()
              throws java.io.IOException
Overrides:
available in class java.io.InputStream

close

public void close()
           throws java.io.IOException
Overrides:
close in class java.io.InputStream

mark

public void mark(int readlimit)
Overrides:
mark in class java.io.InputStream

reset

public void reset()
           throws java.io.IOException
Overrides:
reset in class java.io.InputStream

markSupported

public boolean markSupported()
Overrides:
markSupported in class java.io.InputStream