com.izforge.izpack.compiler
Class PackagerHelper

java.lang.Object
  extended by com.izforge.izpack.compiler.PackagerHelper

public class PackagerHelper
extends java.lang.Object

Helper class for packager classes

Author:
Dennis Reil,

Constructor Summary
PackagerHelper()
           
 
Method Summary
static long copyStream(java.io.InputStream in, java.io.OutputStream out)
          Copies all the data from the specified input stream to the specified output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackagerHelper

public PackagerHelper()
Method Detail

copyStream

public static long copyStream(java.io.InputStream in,
                              java.io.OutputStream out)
                       throws java.io.IOException
Copies all the data from the specified input stream to the specified output stream.

Parameters:
in - the input stream to read
out - the output stream to write
Returns:
the total number of bytes copied
Throws:
java.io.IOException - if an I/O error occurs