MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / decodeFileToFile

Method decodeFileToFile

java/src/cx/fbn/encrypt/Base64.java:1597–1614  ·  view source on GitHub ↗

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 )

Source from the content-addressed store, hash-verified

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 ******** */

Callers

nothing calls this directly

Calls 3

decodeFromFileMethod · 0.95
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected