daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ByteArrayOutputStream result = new ByteArrayOutputStream();
  2. byte[] buffer = new byte[1024];
  3. int length;
  4.  
  5. while ((length = inputStream.read(buffer)) != -1) {
  6.     result.write(buffer, 0, length);
  7. }
  8.  
  9. return result.toString("UTF-8");
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top