Java Dump Stream dumpInputStream(InputStream stream)

Here you can find the source of dumpInputStream(InputStream stream)

Description

dump Input Stream

License

Open Source License

Declaration

static void dumpInputStream(InputStream stream) 

Method Source Code


//package com.java2s;
import java.io.BufferedReader;

import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

public class Main {
    static void dumpInputStream(InputStream stream) {
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(stream));
        String line;/*from   w  w w  .j  a  va  2s . c o m*/
        try {
            while ((line = bufferedReader.readLine()) != null) {
                System.out.println(line);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}

Related

  1. dumpFile(JarInputStream jin, File targetFile)
  2. dumpFile(String r_file, OutputStream outputstream)
  3. dumpInputOutputStream(InputStream is, OutputStream os)
  4. dumpInputStream(InputStream instream)
  5. dumpInputStream(InputStream is, PrintStream p)
  6. dumpInputStreamAsString(InputStream is)
  7. dumpInputStreamIntoString(InputStream f, String encoding)
  8. dumpMap(PrintStream out, Map Values)
  9. dumpStream(InputStream in, PrintStream dump, boolean closeIn)