org.apache.jetspeed.util
Class Streams

java.lang.Object
  extended by org.apache.jetspeed.util.Streams

public class Streams
extends Object

Utility functions related to Streams.

Version:
$Id: Streams.java 516448 2007-03-09 16:25:47Z ate $
Author:
David Sean Taylor

Field Summary
(package private) static int BLOCK_SIZE
           
 
Constructor Summary
Streams()
           
 
Method Summary
static byte[] drain(InputStream r)
           
static void drain(InputStream r, OutputStream w)
           
static void drain(InputStream is, Writer w)
           
static void drain(Reader r, OutputStream os)
           
static void drain(Reader r, Writer w)
           
static String getAsString(InputStream is)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BLOCK_SIZE

static final int BLOCK_SIZE
See Also:
Constant Field Values
Constructor Detail

Streams

public Streams()
Method Detail

drain

public static void drain(InputStream r,
                         OutputStream w)
                  throws IOException
Throws:
IOException

drain

public static void drain(Reader r,
                         Writer w)
                  throws IOException
Throws:
IOException

drain

public static void drain(Reader r,
                         OutputStream os)
                  throws IOException
Throws:
IOException

drain

public static void drain(InputStream is,
                         Writer w)
                  throws IOException
Throws:
IOException

drain

public static byte[] drain(InputStream r)
                    throws IOException
Throws:
IOException

getAsString

public static String getAsString(InputStream is)


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.