org.openorb.io
Class StreamHelper

java.lang.Object
  |
  +--org.openorb.io.StreamHelper

public final class StreamHelper
extends java.lang.Object

Utility class for copying the contents of an input stream to an output stream, given a typecode for the contained data.

Version:
$Revision: 1.3 $ $Date: 2001/08/13 03:47:34 $
Author:
Chris Wood <wood@intalio.com>

Constructor Summary
StreamHelper()
           
 
Method Summary
static void copy_stream(TypeCode type, InputStream is, OutputStream os)
          Copy input stream to output stream, according to the typecode passed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamHelper

public StreamHelper()
Method Detail

copy_stream

public static void copy_stream(TypeCode type,
                               InputStream is,
                               OutputStream os)
Copy input stream to output stream, according to the typecode passed.
Parameters:
type - the typecode of the data to be copied.
is - the input stream source of the data.
os - the destination for the copy.