Java Utililty Methods InputStreamReader Read Line

List of utility methods to do InputStreamReader Read Line

Description

The list of methods to do InputStreamReader Read Line are organized into topic(s).

Method

StringreadLine(InputStreamReader is)
read Line
StringBuffer b = new StringBuffer();
int ch = -1;
try {
    while ((ch = is.read()) != -1) {
        if (ch == '\r')
            continue;
        if (ch == '\n')
            break;
...
StringreadLine(InputStreamReader reader)
Reads a line from a reader.
int c = reader.read();
if (c == -1) {
    return null;
StringBuffer line = new StringBuffer();
while (c != -1 && c != '\n') {
    if (c != '\r') {
        line.append((char) c);
...
LinkedListreadLineList(InputStream stream)
read an ordered list of string lines from input stream and close it
LinkedList<String> values = new LinkedList<String>();
try {
    LineNumberReader lineReader = new LineNumberReader(new InputStreamReader(stream));
    String line = null;
    while ((line = lineReader.readLine()) != null) {
        values.add(line);
    return values;
...