ch.marlovits.addressSearch.directories
Class DirectoriesHelper
java.lang.Object
ch.marlovits.addressSearch.directories.DirectoriesHelper
public class DirectoriesHelper
- extends java.lang.Object
Method Summary |
static java.lang.String |
readContent(java.lang.String name,
java.lang.String geo,
java.lang.String country,
int pageNum)
reads and returns page contents from an online-address-query page |
static void |
writeFile(java.lang.String filenamePath,
java.lang.String text)
write binary file |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectoriesHelper
public DirectoriesHelper()
readContent
public static java.lang.String readContent(java.lang.String name,
java.lang.String geo,
java.lang.String country,
int pageNum)
- reads and returns page contents from an online-address-query page
- Parameters:
name
- search for this namegeo
- search in this city/locationcountry
- search in this country - must be iso2 name of the countrypageNum
-
- Returns:
- the contents of the requested page or "" if any error occurs
- Throws:
java.io.IOException
java.net.MalformedURLException
writeFile
public static void writeFile(java.lang.String filenamePath,
java.lang.String text)
throws java.io.IOException
- write binary file
- Parameters:
filenamePath
- the path of the filetext
- the text to be written
- Throws:
java.io.IOException
Copyright 2005-2011 by Gerry Weirich, Elexis