org.aksw.commons.util
Class StreamUtils

java.lang.Object
  extended by org.aksw.commons.util.StreamUtils

public class StreamUtils
extends Object

Author:
Claus Stadler

Date: 11/28/11 Time: 10:37 PM


Constructor Summary
StreamUtils()
           
 
Method Summary
static void copy(InputStream in, OutputStream out, int bufferSize)
           
static void copyThenClose(InputStream in, OutputStream out)
           
static String toString(InputStream in)
           
static String toStringSafe(InputStream in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamUtils

public StreamUtils()
Method Detail

copy

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

copyThenClose

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

toString

public static String toString(InputStream in)
                       throws IOException
Throws:
IOException

toStringSafe

public static String toStringSafe(InputStream in)


Copyright © 2012. All Rights Reserved.