Apache CXF API

org.apache.cxf.helpers
Class IOUtils

java.lang.Object
  extended by org.apache.cxf.helpers.IOUtils

public final class IOUtils
extends java.lang.Object


Method Summary
static int copy(java.io.InputStream input, java.io.OutputStream output)
           
static int copy(java.io.InputStream input, java.io.OutputStream output, int bufferSize)
           
static void copy(java.io.Reader input, java.io.Writer output, int bufferSize)
           
static byte[] readBytesFromStream(java.io.InputStream in)
           
static java.lang.String readStringFromStream(java.io.InputStream in)
           
static java.lang.String toString(java.io.InputStream input)
           
static java.lang.String toString(java.io.Reader input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copy

public static int copy(java.io.InputStream input,
                       java.io.OutputStream output)
                throws java.io.IOException
Throws:
java.io.IOException

copy

public static int copy(java.io.InputStream input,
                       java.io.OutputStream output,
                       int bufferSize)
                throws java.io.IOException
Throws:
java.io.IOException

copy

public static void copy(java.io.Reader input,
                        java.io.Writer output,
                        int bufferSize)
                 throws java.io.IOException
Throws:
java.io.IOException

toString

public static java.lang.String toString(java.io.InputStream input)
                                 throws java.io.IOException
Throws:
java.io.IOException

toString

public static java.lang.String toString(java.io.Reader input)
                                 throws java.io.IOException
Throws:
java.io.IOException

readStringFromStream

public static java.lang.String readStringFromStream(java.io.InputStream in)
                                             throws java.io.IOException
Throws:
java.io.IOException

readBytesFromStream

public static byte[] readBytesFromStream(java.io.InputStream in)
                                  throws java.io.IOException
Throws:
java.io.IOException

Apache CXF API

Apache CXF is an effort undergoing incubation at the Apache Software Foundation(ASF) and sponsored by the Apache Incubator PMC.