org.ow2.petals.ant.util
Class NioUtil

java.lang.Object
  extended by org.ow2.petals.ant.util.NioUtil

public class NioUtil
extends java.lang.Object

Author:
rnaudin

Constructor Summary
NioUtil()
           
 
Method Summary
static void copyStreamToFile(java.io.InputStream is, java.io.File aFile)
          Transfer bytes blocks using direct buffer memory allocation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NioUtil

public NioUtil()
Method Detail

copyStreamToFile

public static final void copyStreamToFile(java.io.InputStream is,
                                          java.io.File aFile)
                                   throws java.io.IOException
Transfer bytes blocks using direct buffer memory allocation. Relies in use the faster Java New I/O instead of traditional byte array move.

Parameters:
is - the InputStream to copy
aFile - the output File
Throws:
java.io.IOException - if errors occured


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.