|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.util.IOHelper
public final class IOHelper
IO helper class.
Method Summary | |
---|---|
static int |
copy(InputStream input,
OutputStream output)
|
static int |
copy(InputStream input,
OutputStream output,
int bufferSize)
|
static void |
copyAndCloseInput(InputStream input,
OutputStream output)
|
static void |
copyAndCloseInput(InputStream input,
OutputStream output,
int bufferSize)
|
static IOException |
createIOException(String message,
Throwable cause)
A factory method which creates an IOException from the given
exception and message |
static IOException |
createIOException(Throwable cause)
A factory method which creates an IOException from the given
exception and message |
static String |
newStringFromBytes(byte[] bytes)
Use this function instead of new String(byte[]) to avoid surprises from non-standard default encodings. |
static String |
newStringFromBytes(byte[] bytes,
int start,
int length)
Use this function instead of new String(byte[], int, int) to avoid surprises from non-standard default encodings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String newStringFromBytes(byte[] bytes)
public static String newStringFromBytes(byte[] bytes, int start, int length)
public static IOException createIOException(Throwable cause)
IOException
from the given
exception and message
public static IOException createIOException(String message, Throwable cause)
IOException
from the given
exception and message
public static int copy(InputStream input, OutputStream output) throws IOException
IOException
public static int copy(InputStream input, OutputStream output, int bufferSize) throws IOException
IOException
public static void copyAndCloseInput(InputStream input, OutputStream output) throws IOException
IOException
public static void copyAndCloseInput(InputStream input, OutputStream output, int bufferSize) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |