org.apache.cactus.util
class IoUtil

java.lang.Object
  |
  +--org.apache.cactus.util.IoUtil
Known Advisors:
LogAspect

public class IoUtil
extends java.lang.Object

Various utility methods for manipulating IO streams.

Version:
$Id: IoUtil.java,v 1.1 2002/04/21 12:45:44 vmassol Exp $
Author:
Vincent Massol

Constructor Summary
IoUtil()
          Various utility methods for manipulating IO streams.
 
Method Summary
static String getText(InputStream theStream)
          Read all data in an Inpout stream and return them as a String object.
          Affected by: LogAspect
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IoUtil

public IoUtil()
Various utility methods for manipulating IO streams.
Method Detail

getText

public static String getText(InputStream theStream)
                      throws java.io.IOException
Read all data in an Inpout stream and return them as a String object.
Parameters:
theStream - the input stream from which to read the data
Returns:
the string representation of the data
Throws:
IOException - IOException if an error occurs during the read of data
Affected by:
around() in LogAspect.


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.