public static void copyStream ( File inputFile , OutputStream os ) throws IOException { InputStream is = new FileInputStream ( inputFile ) ; try { copyStreamUnsafelyUseWithCaution ( is , os ) ; } finally { is . close ( ) ; } }
Copies the content from inputFile into an output stream .