Class TextSource

All Implemented Interfaces:
Serializable, HasDisplayData

public class TextSource extends FileBasedSource<String>
Implementation detail of TextIO.Read.

A FileBasedSource which can decode records delimited by newline characters.

This source splits the data into records using UTF-8 \n, \r, or \r\n as the delimiter. This source is not strict and supports decoding the last record even if it is not delimited. Finally, no records are decoded if the stream is empty.

This source supports reading from any arbitrary byte position within the stream. If the starting position is not 0, then bytes are skipped until the first delimiter is found representing the beginning of the first record to be decoded.

See Also: