portaview.util
Class StreamUtils

java.lang.Object
  extended byportaview.util.StreamUtils

public class StreamUtils
extends java.lang.Object

Utility to read in streams.

Version:
$Id: StreamUtils.java,v 1.2 2003/12/10 06:18:56 wlee Exp $
Author:
William Lee

Constructor Summary
StreamUtils()
           
 
Method Summary
static byte[] getBytesFromStream(java.io.InputStream in)
          Reads a stream into a byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamUtils

public StreamUtils()
Method Detail

getBytesFromStream

public static byte[] getBytesFromStream(java.io.InputStream in)
                                 throws java.lang.Exception
Reads a stream into a byte array.

Parameters:
in - The input stream
Returns:
a newly allocated byte array
Throws:
java.lang.Exception - if there is anything wrong during the read.


Copyright © 2003 The PortaView Team. All Rights Reserved.