Properties.LineReader

  • Properties.LineReader is a utility for reading "logical lines" from an input stream or reader, ignoring comments and blank lines.

  • It removes leading whitespace characters (space, tab, and form feed) from each line.

  • LineReader provides constructors for both InputStream and Reader input sources.

  • It stores the read line in a buffer and returns the line's character length.

public static class Properties.LineReader extends Object

Read in a "logical line" from an InputStream/Reader, skip all comment and blank lines and filter out those leading whitespace characters ( , and ) from the beginning of a "natural line". Method returns the char length of the "logical line" and stores the line in "lineBuf".

Public Constructor Summary

LineReader(Reader reader)

Inherited Method Summary

Public Constructors

public LineReader (InputStream inStream)

Parameters
inStream

public LineReader (Reader reader)

Parameters
reader