org.iids.aos.util
Class IOUtils

java.lang.Object
  extended by org.iids.aos.util.IOUtils

public class IOUtils
extends java.lang.Object

Utility methods related to files and streams.

Author:
Patrick Verkaik

Field Summary
static int BUFSIZE
           
 
Constructor Summary
IOUtils()
           
 
Method Summary
static void writeStreamToFile(java.io.InputStream inputStream, boolean shouldBufferInput, java.io.File file)
          Writes the entire contents of an input stream to a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUFSIZE

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

IOUtils

public IOUtils()
Method Detail

writeStreamToFile

public static void writeStreamToFile(java.io.InputStream inputStream,
                                     boolean shouldBufferInput,
                                     java.io.File file)
                              throws java.io.IOException
Writes the entire contents of an input stream to a file.

Parameters:
shouldBufferInput - whether inputStream should be wrapped inside a BufferedInputStream
Throws:
java.io.IOException


Copyright © 2003, 2004 IIDS Group. All Rights Reserved.