Reads infile and decodes it to outfile . @param infile Input file @param outfile Output file @throws java.io.IOException if there is an error @since 2.2
( String infile, String outfile )
| 1595 | * @since 2.2 |
| 1596 | */ |
| 1597 | public static void decodeFileToFile( String infile, String outfile ) |
| 1598 | throws java.io.IOException { |
| 1599 | |
| 1600 | byte[] decoded = Base64.decodeFromFile( infile ); |
| 1601 | java.io.OutputStream out = null; |
| 1602 | try{ |
| 1603 | out = new java.io.BufferedOutputStream( |
| 1604 | new java.io.FileOutputStream( outfile ) ); |
| 1605 | out.write( decoded ); |
| 1606 | } // end try |
| 1607 | catch( java.io.IOException e ) { |
| 1608 | throw e; // Catch and release to execute finally{} |
| 1609 | } // end catch |
| 1610 | finally { |
| 1611 | try { out.close(); } |
| 1612 | catch( Exception ex ){} |
| 1613 | } // end finally |
| 1614 | } // end decodeFileToFile |
| 1615 | |
| 1616 | |
| 1617 | /* ******** I N N E R C L A S S I N P U T S T R E A M ******** */ |
nothing calls this directly
no test coverage detected