Java InputStream Read Line readLineStringConcat(InputStream is)

Here you can find the source of readLineStringConcat(InputStream is)

Description

read Line String Concat

License

Open Source License

Declaration

private static String readLineStringConcat(InputStream is) throws Exception 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.InputStream;

public class Main {
    private static String readLineStringConcat(InputStream is) throws Exception {
        String res = "";
        int temp = is.read();
        while (temp != 0x0D) {
            res += (char) temp;
            temp = is.read();//from  w w  w. ja  va  2  s  .  c  o m
        }
        is.read(); // skip (char)0x0A
        return res;
    }
}

Related

  1. readLinesCommon(InputStream in)
  2. readLineSet(InputStream stream)
  3. readLinesStream(InputStream is, boolean trim)
  4. readLineString(InputStream is)
  5. readLineStringBuilder(InputStream is)
  6. readLinesUntil(InputStream br, String ln)