public static int write ( InputStream is , File f ) { try { return copy ( is , new BufferedOutputStream ( new FileOutputStream ( f ) ) ) ; } catch ( FileNotFoundException e ) { throw E . ioException ( e ) ; } }
Read from inputstream and write into file .