org.crsh.util
Class IO

java.lang.Object
  extended by org.crsh.util.IO

public class IO
extends Object


Constructor Summary
IO()
           
 
Method Summary
static void copy(InputStream in, OutputStream out)
           
private static ByteArrayOutputStream read(InputStream in)
           
static byte[] readAsBytes(InputStream in)
           
static String readAsUTF8(InputStream in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IO

public IO()
Method Detail

readAsBytes

public static byte[] readAsBytes(InputStream in)
                          throws IOException
Throws:
IOException

readAsUTF8

public static String readAsUTF8(InputStream in)

copy

public static void copy(InputStream in,
                        OutputStream out)
                 throws IOException
Throws:
IOException

read

private static ByteArrayOutputStream read(InputStream in)
                                   throws IOException
Throws:
IOException


Copyright © 2014 eXo Platform SAS. All Rights Reserved.