gnu.inet.util

Class LineInputStream


public class LineInputStream
extends FilterInputStream

An input stream that can read lines of input.

Author:
Chris Burdess

Constructor Summary

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

Method Summary

String
readLine()
Read a line of input.

Constructor Details

LineInputStream

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

Parameters:
in - the underlying input stream


LineInputStream

public LineInputStream(InputStream in,
                       String encoding)
Constructor.

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

Method Details

readLine

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


© Copyright 2003 The Free Software Foundation, all rights reserved