IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.mobile
Class CopyUtils

java.lang.Object
  extended by com.ibm.btt.mobile.CopyUtils

public abstract class CopyUtils
extends java.lang.Object

The utility class used to copy the content from the input stream to output stream


Field Summary
static int BUFFER_SIZE
           
 
Constructor Summary
CopyUtils()
           
 
Method Summary
static int copy(java.io.InputStream in, java.io.OutputStream out)
          Copy the content from the input stream into output stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUFFER_SIZE

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

CopyUtils

public CopyUtils()
Method Detail

copy

public static int copy(java.io.InputStream in,
                       java.io.OutputStream out)
                throws java.io.IOException
Copy the content from the input stream into output stream

Parameters:
in - the input stream
out - the output stream
Returns:
the number of the bytes that reads
Throws:
java.io.IOException - if error occurs

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2009