All Packages Class Hierarchy This Package Previous Next Index
Class w3c.pics.db.RandomURLGenerator
java.lang.Object
|
+----w3c.pics.db.RandomURLGenerator
- public class RandomURLGenerator
- extends Object
A class that generates random URLs
-
RandomURLGenerator()
- Creates a new RandomURLGenerator.
-
getURL()
- Returns a String containing a properly-formed random URL.
-
getURL(int)
- Returns a String containing a properly-formed random URL.
-
main(String[])
- Prints out some random URLs.
RandomURLGenerator
public RandomURLGenerator()
- Creates a new RandomURLGenerator.
main
public static void main(String args[])
- Prints out some random URLs.
Takes the following command-line arguments:
- -count -- If the count flag is present, it will read the next
argument as an integer, and use it for the number of labels to create.
- -rseed -- If the rseed flag is present, it will read the next
argument as an integer, and use it as the random number seed for the
URL generation.
getURL
public String getURL()
- Returns a String containing a properly-formed random URL.
- Returns:
- A URL as a String.
getURL
public String getURL(int rnum)
- Returns a String containing a properly-formed random URL.
- Parameters:
- rnum - A number that controls the range of the random number
generator.
- Returns:
- A URL as a String.
All Packages Class Hierarchy This Package Previous Next Index