org.apache.portals.applications.util
Class Streams
java.lang.Object
org.apache.portals.applications.util.Streams
- public class Streams
- extends Object
Utility functions related to Streams.
- Version:
- $Id: Streams.java 263862 2005-08-28 11:17:12Z sgala $
- Author:
- David Sean Taylor
Field Summary |
(package private) static int |
BLOCK_SIZE
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BLOCK_SIZE
static final int BLOCK_SIZE
- See Also:
- Constant Field Values
Streams
public Streams()
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
- Deprecated. encoding?
- Parameters:
r
- character readeros
- byte stream
- Throws:
IOException
drain
public static void drain(InputStream is,
Writer w)
throws IOException
- Deprecated. how can it know the encoding?
- Parameters:
is
- input stream (encoding?)w
- writer
- Throws:
IOException
drain
public static byte[] drain(InputStream r)
throws IOException
- Throws:
IOException
getAsString
public static String getAsString(InputStream is)
- Deprecated. encoding?
- Parameters:
is
- input stream
- Returns:
Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.