bass.crawler
Class CountryDistribution

java.lang.Object
  extended by bass.crawler.CountryDistribution

public class CountryDistribution
extends java.lang.Object

Necessary, since mySpace.com blocked the empty search and we have to crawl the search pages of every country now.

Version:
0.1
Author:
Fabian Winkhardt, Thomas Klein

Field Summary
private  java.lang.String[] countries
           
private  int countryIndex
           
 
Constructor Summary
CountryDistribution()
          generates a new CountryDistribution with all countries
CountryDistribution(java.lang.String[] countrycodes)
          generates a new CountryDistribution with the specified countries
 
Method Summary
 java.lang.String getNextCountryCode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

countryIndex

private int countryIndex

countries

private java.lang.String[] countries
Constructor Detail

CountryDistribution

public CountryDistribution()
generates a new CountryDistribution with all countries


CountryDistribution

public CountryDistribution(java.lang.String[] countrycodes)
generates a new CountryDistribution with the specified countries

Parameters:
countrycodes - the country codes to use
Method Detail

getNextCountryCode

public java.lang.String getNextCountryCode()
Returns:
a country code or null if all countries have already been returned