org.fusesource.common.util
Class IOHelpers

java.lang.Object
  extended by org.fusesource.common.util.IOHelpers

public class IOHelpers
extends java.lang.Object


Field Summary
protected static int BUFFER_SIZE
           
 
Constructor Summary
IOHelpers()
           
 
Method Summary
static void writeTo(java.io.File file, java.io.InputStream in)
           
static void writeTo(java.io.File file, java.io.InputStream in, int bufferSize)
           
static void writeTo(java.io.OutputStream outputStream, java.io.InputStream in, boolean close)
           
static void writeTo(java.io.OutputStream outputStream, java.io.InputStream in, int bufferSize, boolean close)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUFFER_SIZE

protected static final int BUFFER_SIZE
See Also:
Constant Field Values
Constructor Detail

IOHelpers

public IOHelpers()
Method Detail

writeTo

public static void writeTo(java.io.File file,
                           java.io.InputStream in)
                    throws java.io.IOException
Throws:
java.io.IOException

writeTo

public static void writeTo(java.io.File file,
                           java.io.InputStream in,
                           int bufferSize)
                    throws java.io.IOException
Throws:
java.io.IOException

writeTo

public static void writeTo(java.io.OutputStream outputStream,
                           java.io.InputStream in,
                           boolean close)
                    throws java.io.IOException
Throws:
java.io.IOException

writeTo

public static void writeTo(java.io.OutputStream outputStream,
                           java.io.InputStream in,
                           int bufferSize,
                           boolean close)
                    throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2014 Red Hat. All Rights Reserved.