Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
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".
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[],["`Properties.LineReader` reads \"logical lines\" from an `InputStream` or `Reader`. It skips comment and blank lines, and removes leading whitespace. The `LineReader` stores the filtered line in `lineBuf` and returns its character length. It has two constructors, one taking an `InputStream` and the other a `Reader` as parameters. It inherits methods from `java.lang.Object`, like `clone`, `equals`, `hashCode`, and `wait`.\n"]]