public class LinkCrawler extends Object
| Constructor and Description |
|---|
LinkCrawler()
Initialization of link crawler
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
contains(String str)
Checks the link existance in the output list
|
String |
get(int index)
Gets url from the crawled list on the specific index
|
List<String> |
getUrls()
Gets list of crawled urls
|
void |
setLinksLimit(int newLimit)
sets maximum number of urls
|
void |
setSeed(String newSeed)
Appends seed into list of searching domains
|
int |
size()
size of crawled output list
|
void |
start()
Launches links downloading
|
public void setSeed(String newSeed)
newSeed - contains domain name where crawling startspublic void start()
public int size()
public Boolean contains(String str)
str - controlled linkpublic String get(int index)
index - public void setLinksLimit(int newLimit)
newLimit - Copyright © 2015. All rights reserved.