public class Misc
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
streamFile(java.io.File file,
java.io.OutputStream out)
Streams the contents of a file to an output stream.
|
public static void streamFile(java.io.File file, java.io.OutputStream out) throws java.io.IOException
file
- file whose contents are to be streamedout
- output stream to which the contents of file
ar to be
streamedjava.io.IOException
- if an IO error occurs