gnu.inet.util

Class LineInputStream


public class LineInputStream
extends java.io.FilterInputStream

An input stream that can read lines of input.

Version:
$Revision: 1.4 $ $Date: 2004/07/30 19:06:45 $

Author:
Chris Burdess

Constructor Summary

LineInputStream(java.io.InputStream in)
Constructor using the US-ASCII character encoding.
LineInputStream(java.io.InputStream in, java.lang.String encoding)
Constructor.

Method Summary

java.lang.String
readLine()
Read a line of input.

Constructor Details

LineInputStream

public LineInputStream(java.io.InputStream in)
Constructor using the US-ASCII character encoding.

Parameters:
in - the underlying input stream


LineInputStream

public LineInputStream(java.io.InputStream in,
                       java.lang.String encoding)
Constructor.

Parameters:
in - the underlying input stream
encoding - the character encoding to use

Method Details

readLine

public java.lang.String readLine()
            throws java.io.IOException
Read a line of input.


© Copyright 2003 The Free Software Foundation, all rights reserved