This documentation is part of the Link Checker Library project.

de.tw.website.linkchecker
Class LinkChecker

java.lang.Object
  |
  +--de.tw.website.linkchecker.LinkChecker

public class LinkChecker
extends java.lang.Object

Linkchecker. Use by calling scanAllFileSystems (), then add your URLs with addAbsoluteUrlToParse() you want the link-checking to begin with, then call checkAllUrls ().

Version:
1.0
Author:
Thomas Weinbrenner

Inner Class Summary
static class LinkChecker.InvalidArgumentException
           
 
Field Summary
static int MAX_PARSE_EXCEPTION_COUNT
          Number of HTML parsing exceptions allowed before skipping file.
 
Constructor Summary
LinkChecker(int internalHashMapSize, WebSiteInfo urlToFileSystemMapper, Progress progress, Report report)
          Constructor.
 
Method Summary
 void addAbsoluteUrlToParse(java.lang.String url)
          Add an URL which is part of the website to be scheduled for parsing.
 void checkAllUrls()
          Checks all URLs that are still to visit.
 void scanAllFileSystems()
          Scan all files of all file systems that the url to file system mapper provides, usually just one
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_PARSE_EXCEPTION_COUNT

public static int MAX_PARSE_EXCEPTION_COUNT
Number of HTML parsing exceptions allowed before skipping file.
Constructor Detail

LinkChecker

public LinkChecker(int internalHashMapSize,
                   WebSiteInfo urlToFileSystemMapper,
                   Progress progress,
                   Report report)
Constructor.
Method Detail

scanAllFileSystems

public void scanAllFileSystems()
                        throws FileUtil.DirectoryNotFoundException
Scan all files of all file systems that the url to file system mapper provides, usually just one

addAbsoluteUrlToParse

public void addAbsoluteUrlToParse(java.lang.String url)
                           throws LinkChecker.InvalidArgumentException
Add an URL which is part of the website to be scheduled for parsing.

checkAllUrls

public void checkAllUrls()
Checks all URLs that are still to visit. After that, report all files that have not been visited yet. Then try to check these files as well.

This documentation is part of the Link Checker Library project.