TextReader
Leave feedback
On this page
Inheritance: java.lang.Object, java.io.Reader
public abstract class TextReader extends Reader
Represents a reader that can read a sequential series of characters.
| Constructor | Description |
|---|---|
| TextReader() |
| 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. |
public TextReader()
public boolean markSupported()
Returns: boolean
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.
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.
public void dispose()
Releases all resources used by TextReader object.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.