package page.com.jfilerecovery;

import org.wikiwebserver.core.WareHouse;
import org.wikiwebserver.handler.http.interfaces.*;

import page.config.SiteTemplatedPage;

import static org.wikiwebserver.html.HTMLHelper.*;

public class CRCErrors extends SiteTemplatedPage implements HTTPResponder {
    
    public void generate() {
        addResourceRoot("/templates/com/jfilerecovery/");
        addCSSLink("jfilerecovery.css"); 
        
        setTitle("CRC Errors - JFileRecovery");
        
        String downloadPage = WareHouse.getUrlPathForClass(Download.class);
        
        append(h(1, "Cyclic Redundancy Check Errors") +
               this.image("crc_error.gif", "Damaged CD", "align='right'") +
               p("A cyclic redundancy check (CRC) is used to detect alteration of data" +
                 " during transmission or storage. This checking procedure is useful" +
                 " to identify when data is damaged or corrupted.") +
                 getGoogleAdsenseBlock("pub-7253309958196609", "3266833229", 468, 60) +
               p("The most common time you will see a CRC error message is when trying" +
                 " to read data from a damaged CD or DVD. Usually the computer becomes" +
                 " less responsive and you hear repetitive seek noises from the drive for" +
                 " up to a minute. And then, if you are using windows XP, you will encounter" +
                 " the following error message:") +
                 "<!-- <a target='_blank' href='http://www.shareasale.com/r.cfm?b=177950&u=378675&m=22450&urllink=&afftrack='>" +
                 "<img align='left' src='http://www.shareasale.com/image/200x200safehappy.png' alt='Backed Up Online.   Files Safe.  Happy :)' border='0'>" +
                 "</a> -->" +
               h(2, "xperror", "Cannot copy [FILENAME]. Data error (cyclic redundancy check)") +
               p("The copy process is then aborted with no option of retrying to read from the" +
               	 " damaged region or skipping over it. This is very frustrating when copying" +
               	 " large files because you must try copying again from the beginning.") +
               p(a(downloadPage, "JFileRecovery") + " provides options to retry or skip bad" +
               	 " sectors when copying files from damaged hard drives, CDs, DVDs and Flash media.")
        );
    }
}


