Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.marlovits.addressSearch.directories
Class DirectoriesHelper

java.lang.Object
  extended by ch.marlovits.addressSearch.directories.DirectoriesHelper

public class DirectoriesHelper
extends java.lang.Object


Constructor Summary
DirectoriesHelper()
           
 
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
 

Constructor Detail

DirectoriesHelper

public DirectoriesHelper()
Method Detail

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 name
geo - search in this city/location
country - search in this country - must be iso2 name of the country
pageNum -
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 file
text - the text to be written
Throws:
java.io.IOException

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis