public class RandomAddressUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_FILE_STREETS
Resource for get german streets.
|
static String |
PROP_FILE_ZIP_CITIES
Resource for get german zipcodes and the cities from it.
|
| Constructor and Description |
|---|
RandomAddressUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getRandomStreet(Properties properties)
Returns a random german street.
|
static String |
getRandomStreetWithNumber(Properties properties)
Gets a random german street with a random number.
|
static String |
getRandomZip(Properties p)
Gets a random zip from the Properties.
|
public static final String PROP_FILE_STREETS
public static final String PROP_FILE_ZIP_CITIES
public static String getRandomStreet(Properties properties) throws IOException
properties - The properties file with the streets.IOException - Signals that an I/O exception has occurred.public static String getRandomStreetWithNumber(Properties properties) throws IOException
properties - The properties file with the streets.IOException - Signals that an I/O exception has occurred.public static String getRandomZip(Properties p)
p - The Properties.Copyright © 2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.