License:
BSD style: see license.txt
Version:
Initial release: Oct 2007
author:
Kris
- class
LineInput
: tango.text.stream.LineIterator.LineIterator!(char).LineIterator;
- Simple way to hook up a line-tokenizer to an arbitrary InputStream,
such as a file conduit:
auto input = new LineInput (new FileInput("path"));
foreach (line; input)
...
input.close;
Note that this is just a simple wrapper around LineIterator, and
supports utf8 lines only. Use LineIterator directly for utf16/32
support, or use the other tango.text.stream classes directly for
other tokenizing needs.
Note that this class is a true instance of InputStream, by way of
inheritance via the Iterator superclass.
- this(InputStream stream);
- Propagate ctor to superclass
|