Android InputStream to String Convert readToString(final InputStream inputStream)

Here you can find the source of readToString(final InputStream inputStream)

Description

read To String

License

Open Source License

Declaration

public static String readToString(final InputStream inputStream) 

Method Source Code

//package com.java2s;
// Licensed under the Apache License, Version 2.0 (the "License");

import java.io.InputStream;
import java.util.Scanner;

public class Main {
    public static String readToString(final InputStream inputStream) {
        return new Scanner(inputStream).useDelimiter("\\A").next();
    }/*  w w w . ja v a2 s  .  c  o  m*/
}

Related

  1. inputStream2String(InputStream is)
  2. inStream2String(InputStream is)
  3. fromStream(InputStream inputStream)
  4. parseString(InputStream is)
  5. convertStreamToString(InputStream is)
  6. inputStreamToString(InputStream inputstream)
  7. streamToString(InputStream is)
  8. inputStreamToString(InputStream is)
  9. inputStreamToString(InputStream stream)