|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.helpers.IOUtils
public final class IOUtils
| Field Summary | |
|---|---|
static java.nio.charset.Charset |
UTF8_CHARSET
|
| 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 int |
copyAndCloseInput(java.io.InputStream input,
java.io.OutputStream output)
|
static int |
copyAndCloseInput(java.io.InputStream input,
java.io.OutputStream output,
int bufferSize)
|
static java.io.ByteArrayInputStream |
loadIntoBAIS(java.io.InputStream in)
Load the InputStream into memory and return a ByteArrayInputStream that represents it. |
static java.lang.String |
newStringFromBytes(byte[] bytes)
Use this function instead of new String(byte[]) to avoid surprises from non-standard default encodings. |
static java.lang.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. |
static java.lang.String |
newStringFromBytes(byte[] bytes,
java.lang.String charsetName)
Use this function instead of new String(byte[], String) to avoid surprises from non-standard default encodings. |
static java.lang.String |
newStringFromBytes(byte[] bytes,
java.lang.String charsetName,
int start,
int length)
Use this function instead of new String(byte[], int, int, String) to avoid surprises from non-standard default encodings. |
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.InputStream input,
int bufferSize)
|
static java.lang.String |
toString(java.io.InputStream input,
int bufferSize,
java.lang.String charset)
|
static java.lang.String |
toString(java.io.InputStream input,
java.lang.String charset)
|
static java.lang.String |
toString(java.io.Reader input)
|
static java.lang.String |
toString(java.io.Reader input,
int bufSize)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.nio.charset.Charset UTF8_CHARSET
| Method Detail |
|---|
public static java.lang.String newStringFromBytes(byte[] bytes,
java.lang.String charsetName)
bytes - charsetName -
public static java.lang.String newStringFromBytes(byte[] bytes)
bytes -
public static java.lang.String newStringFromBytes(byte[] bytes,
java.lang.String charsetName,
int start,
int length)
bytes - charsetName - start - length -
public static java.lang.String newStringFromBytes(byte[] bytes,
int start,
int length)
bytes - start - length -
public static int copy(java.io.InputStream input,
java.io.OutputStream output)
throws java.io.IOException
java.io.IOException
public static int copyAndCloseInput(java.io.InputStream input,
java.io.OutputStream output)
throws java.io.IOException
java.io.IOException
public static int copyAndCloseInput(java.io.InputStream input,
java.io.OutputStream output,
int bufferSize)
throws java.io.IOException
java.io.IOException
public static int copy(java.io.InputStream input,
java.io.OutputStream output,
int bufferSize)
throws java.io.IOException
java.io.IOException
public static void copy(java.io.Reader input,
java.io.Writer output,
int bufferSize)
throws java.io.IOException
java.io.IOException
public static java.lang.String toString(java.io.InputStream input)
throws java.io.IOException
java.io.IOException
public static java.lang.String toString(java.io.InputStream input,
java.lang.String charset)
throws java.io.IOException
java.io.IOException
public static java.lang.String toString(java.io.InputStream input,
int bufferSize)
throws java.io.IOException
java.io.IOException
public static java.lang.String toString(java.io.InputStream input,
int bufferSize,
java.lang.String charset)
throws java.io.IOException
java.io.IOException
public static java.lang.String toString(java.io.Reader input)
throws java.io.IOException
java.io.IOException
public static java.lang.String toString(java.io.Reader input,
int bufSize)
throws java.io.IOException
java.io.IOException
public static java.lang.String readStringFromStream(java.io.InputStream in)
throws java.io.IOException
java.io.IOException
public static java.io.ByteArrayInputStream loadIntoBAIS(java.io.InputStream in)
throws java.io.IOException
in -
java.io.IOException
public static byte[] readBytesFromStream(java.io.InputStream in)
throws java.io.IOException
java.io.IOException
|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||