public final class RandomAddressExtensions
extends java.lang.Object
RandomAddressExtensions is a utility class to create random addresses.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROP_FILE_STREETS
Resource for get german streets.
|
static java.lang.String |
PROP_FILE_ZIP_CITIES
Resource for get german zipcodes and the cities from it.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getRandomStreet(java.util.Properties properties)
Returns a random german street.
|
static java.lang.String |
getRandomStreetWithNumber(java.util.Properties properties)
Gets a random german street with a random number.
|
static java.lang.String |
getRandomZip(java.util.Properties properties)
Gets a random zip from the Properties.
|
public static final java.lang.String PROP_FILE_STREETS
public static final java.lang.String PROP_FILE_ZIP_CITIES
public static java.lang.String getRandomStreet(java.util.Properties properties)
throws java.io.IOException
properties - The properties file with the streets.java.io.IOException - Signals that an I/O exception has occurred.public static java.lang.String getRandomStreetWithNumber(java.util.Properties properties)
throws java.io.IOException
properties - The properties file with the streets.java.io.IOException - Signals that an I/O exception has occurred.public static java.lang.String getRandomZip(java.util.Properties properties)
properties - The Properties.