package filter
Contains various file- and I/O-related filter classes.
Type Members
-
class
BackslashContinuedLineIterator extends Iterator[String]
Assemble input lines, honoring backslash escapes for line continuation.
Assemble input lines, honoring backslash escapes for line continuation.
BackslashContinuedLineIterator
takes an iterator over lines of input, looks for lines containing trailing backslashes, and treats them as continuation lines, to be concatenated with subsequent lines in the input. Thus, when aBackslashContinuedLineIterator
filters this input:Lorem ipsum dolor sit amet, consectetur \ adipiscing elit. In congue tincidunt fringilla. \ Sed interdum nibh vitae \ libero fermentum id dictum risus facilisis.
it produces these lines:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In congue tincidunt fringilla. Sed interdum nibh vitae libero fermentum id dictum risus facilisis.