se.unlogic.standardutils.streams
Class StreamUtils

java.lang.Object
  extended by se.unlogic.standardutils.streams.StreamUtils

public class StreamUtils
extends Object


Constructor Summary
StreamUtils()
           
 
Method Summary
static void closeStream(InputStream stream)
           
static void closeStream(OutputStream stream)
           
static byte[] toByteArray(InputStream inputStream)
           
static void transfer(InputStream inputStream, OutputStream outputStream)
           
 
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

toByteArray

public static byte[] toByteArray(InputStream inputStream)
                          throws IOException
Throws:
IOException

transfer

public static void transfer(InputStream inputStream,
                            OutputStream outputStream)
                     throws IOException
Throws:
IOException

closeStream

public static void closeStream(InputStream stream)

closeStream

public static void closeStream(OutputStream stream)


Copyright © 2011. All Rights Reserved.