Top Description Fields Constructors Methods
org.hsqldb.lib

public Class LineReader

extends Object
Class Inheritance
Imports
java.io.IOException, .InputStream, java.nio.charset.Charset

A converter for InputStream to return String objects using the given charset for conversion. The readLine() method returns the next string excluding carriage-return and line-feed characters. No other character is excluded. A carriage-return followed by a line-feed is treated as a single end-of-line marker. Otherwise, each carriage-return or line-feed is treated as an end-of_line marker.
Author
Fred Toussi (fredt@users dot sourceforge.net)
Since
2.0.1
Version
2.5.0

Field Summary

Modifier and TypeField and Description
pack-priv HsqlByteArrayOutputStream
pack-priv final Charset
pack-priv boolean
pack-priv final InputStream
pack-priv boolean
pack-priv boolean

Constructor Summary

AccessConstructor and Description
public
LineReader(InputStream stream, Charset charset)

Method Summary

Modifier and TypeMethod and Description
public void
public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

baOSback to summary
pack-priv HsqlByteArrayOutputStream baOS
charsetback to summary
pack-priv final Charset charset
finishedback to summary
pack-priv boolean finished
streamback to summary
pack-priv final InputStream stream
wasCRback to summary
pack-priv boolean wasCR
wasEOLback to summary
pack-priv boolean wasEOL

Constructor Detail

LineReaderback to summary
public LineReader(InputStream stream, Charset charset)

Method Detail

closeback to summary
public void close() throws IOException
readLineback to summary
public String readLine() throws IOException