|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.apache.fop.tools.IOUtil
I/O utilities. This class should be replaced as soon as Jakarta Commons IO announces its first release.
| Constructor Summary | |
IOUtil()
|
|
| Method Summary | |
static void |
copyStream(java.io.InputStream in,
java.io.OutputStream out)
Copies the contents of the InputStream over to the OutputStream. |
static byte[] |
toByteArray(java.io.InputStream in,
int initialTargetBufferSize)
Loads the contents of the InputStream to a byte array. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public IOUtil()
| Method Detail |
public static void copyStream(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
in - InputStream to read fromout - OutputStream to write to
java.io.IOException - In case of an I/O problem
public static byte[] toByteArray(java.io.InputStream in,
int initialTargetBufferSize)
throws java.io.IOException
in - InputStream to read frominitialTargetBufferSize - initial number of bytes to allocate
(expected size to avoid a lot of reallocations)
java.io.IOException - In case of an I/O problem
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||