public static void decodeToFile()

in chill-java/src/main/java/com/twitter/chill/Base64.java [1439:1455]


    public static void decodeToFile( String dataToDecode, String filename )
    throws java.io.IOException {

        Base64.OutputStream bos = null;
        try{
            bos = new Base64.OutputStream(
                      new java.io.FileOutputStream( filename ), Base64.DECODE );
            bos.write( dataToDecode.getBytes( PREFERRED_ENCODING ) );
        }   // end try
        catch( java.io.IOException e ) {
            throw e; // Catch and throw to execute finally{} block
        }   // end catch: java.io.IOException
        finally {
                try{ bos.close(); } catch( Exception e ){}
        }   // end finally

    }   // end decodeToFile