org.apache.geronimo.kernel.util
Class IOUtils

java.lang.Object
  extended by org.apache.geronimo.kernel.util.IOUtils

public class IOUtils
extends Object

Version:
$Rev: 1391947 $ $Date: 2012-09-30 11:48:05 +0800 (Sun, 30 Sep 2012) $

Nested Class Summary
static class IOUtils.EmptyInputStream
           
 
Field Summary
static int DEFAULT_COPY_BUFFER_SIZE
           
 
Constructor Summary
IOUtils()
           
 
Method Summary
static void close(Closeable thing)
           
static void copy(InputStream in, OutputStream out)
           
static void copy(InputStream in, OutputStream out, byte[] buffer)
           
static void copy(InputStream in, OutputStream out, int bufferSizeInBytes)
           
static void flush(OutputStream thing)
           
static void flush(Writer thing)
           
static byte[] getBytes(InputStream inputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_COPY_BUFFER_SIZE

public static final int DEFAULT_COPY_BUFFER_SIZE
See Also:
Constant Field Values
Constructor Detail

IOUtils

public IOUtils()
Method Detail

copy

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

copy

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

copy

public static void copy(InputStream in,
                        OutputStream out,
                        byte[] buffer)
                 throws IOException
Throws:
IOException

close

public static void close(Closeable thing)

getBytes

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

flush

public static void flush(OutputStream thing)

flush

public static void flush(Writer thing)


Copyright © 2003-2013 The Apache Geronimo development community. All Rights Reserved.