core :: LineIterator
Reader::each_line.See the aforementioned method for details.
core :: LineIterator :: close_on_finish
Close the stream when the stream is at the EOF.core :: LineIterator :: close_on_finish=
Close the stream when the stream is at the EOF.core :: LineIterator :: defaultinit
core $ LineIterator :: SELF
Type of this instance, automatically specialized in every classcore :: CachedIterator :: cache=
The last item effectively read.core :: Object :: class_factory
Implementation used byget_class to create the specific class.
			core :: LineIterator :: close_on_finish
Close the stream when the stream is at the EOF.core :: LineIterator :: close_on_finish=
Close the stream when the stream is at the EOF.core :: CachedIterator :: current_item
The current item, if any.core :: Object :: defaultinit
core :: LineIterator :: defaultinit
core :: Iterator :: defaultinit
core :: CachedIterator :: defaultinit
core :: Object :: is_same_instance
Return true ifself and other are the same instance (i.e. same identity).
			core :: Object :: is_same_serialized
Isself the same as other in a serialization context?
			core :: Object :: is_same_type
Return true ifself and other have the same dynamic type.
			Iterator whose elements are sorted by the function
			core :: Object :: output_class_name
Display class name on stdout (debug only).
# Iterator returned by `Reader::each_line`.
# See the aforementioned method for details.
class LineIterator
	super CachedIterator[String]
	# The original stream
	var stream: Reader
	redef fun next_item
	do
		if stream.eof then
			if close_on_finish then stream.close
			return null
		end
		return stream.read_line
	end
	# Close the stream when the stream is at the EOF.
	#
	# Default is false.
	var close_on_finish = false is writable
	redef fun finish
	do
		if close_on_finish then stream.close
	end
end
					lib/core/stream.nit:484,1--510,3