TextReader

Inheritance: java.lang.Object, java.io.Reader

public abstract class TextReader extends Reader

Represents a reader that can read a sequential series of characters.

Constructors

Constructor Description
TextReader()

Methods

Method Description
markSupported()
readLine() Reads a line of characters from the text reader and returns the data as a string.
readToEnd() Reads all characters from the current position to the end of the text reader and returns them as one string.
dispose() Releases all resources used by TextReader object.

TextReader()

public TextReader()

markSupported()

public boolean markSupported()

Returns: boolean

readLine()

public abstract String readLine()

Reads a line of characters from the text reader and returns the data as a string.

Returns: java.lang.String - The next line from the reader, or null if all characters have been read.

readToEnd()

public abstract String readToEnd()

Reads all characters from the current position to the end of the text reader and returns them as one string.

Returns: java.lang.String - A string that contains all characters from the current position to the end of the text reader.

dispose()

public void dispose()

Releases all resources used by TextReader object.