|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.marlovits.addressSearch.directories.HtmlParser
ch.marlovits.addressSearch.directories.DirectoriesContentParser
public class DirectoriesContentParser
Constructor Summary | |
---|---|
DirectoriesContentParser(java.lang.String htmlText,
java.lang.String name,
java.lang.String geo,
java.lang.String country)
|
Method Summary | |
---|---|
java.util.List<KontaktEntry> |
extractKontakte()
Extrahiert Informationen aus dem retournierten Html. |
static java.lang.String |
extractVornamen(java.lang.String firstnames,
java.lang.String delimiter)
|
static java.lang.String |
formatPhoneNumber(java.lang.String phoneNumber,
java.lang.String country)
Format a phone number as swiss phone number, 0xx xxx xx xx |
static java.lang.String |
formatPhoneNumber(java.lang.String phoneNumber,
java.lang.String country,
java.lang.String inFormat,
java.lang.String outFormat)
Format a phone number according to your needs. |
static java.lang.String |
formatString(java.lang.String sourceString)
reformat string correctly which came from vCard from tel.local.ch |
java.lang.String[][] |
getCitiesHitList()
returns a list of possibly matching city names if the entered city could not be found |
java.lang.String |
getCitiesHitListMessage()
|
static java.lang.String |
getDocReturnCharacter(java.lang.String contents)
|
int |
getNumOfEntries()
extracts the total number of found entries |
java.lang.String |
getSearchInfo()
Informationen zur Suche werden extrahiert. |
boolean |
hasCitiesList()
|
static KontaktEntry |
parseVCard(java.lang.String vCardURL,
java.lang.String country)
|
static java.lang.String |
readContent(java.lang.String urlText,
java.lang.String charSet)
read and return the contents of a html page |
Methods inherited from class ch.marlovits.addressSearch.directories.HtmlParser |
---|
extract, extractTo, getNextPos, getNextPos, getTail, moveTo, reset, setHtmlText, startsWith |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectoriesContentParser(java.lang.String htmlText, java.lang.String name, java.lang.String geo, java.lang.String country)
Method Detail |
---|
public java.lang.String getSearchInfo()
public int getNumOfEntries()
public boolean hasCitiesList()
public java.lang.String getCitiesHitListMessage()
public java.lang.String[][] getCitiesHitList()
public java.util.List<KontaktEntry> extractKontakte() throws java.io.IOException
java.io.IOException
public static java.lang.String getDocReturnCharacter(java.lang.String contents)
public static java.lang.String extractVornamen(java.lang.String firstnames, java.lang.String delimiter)
firstnames
- inputdelimiter
- used to separate the firstnames
public static KontaktEntry parseVCard(java.lang.String vCardURL, java.lang.String country)
public static java.lang.String formatString(java.lang.String sourceString)
sourceString
-
public static java.lang.String formatPhoneNumber(java.lang.String phoneNumber, java.lang.String country)
phoneNumber
- the phoneNumber as returned from vCard from tel.local.ch, eg. +41523439772
public static java.lang.String formatPhoneNumber(java.lang.String phoneNumber, java.lang.String country, java.lang.String inFormat, java.lang.String outFormat)
phoneNumber
- the phoneNumber as returned from vCard from tel.local.ch, eg. +41523439772inFormat
- the format of the inputoutFormat
- how to format the output
public static java.lang.String readContent(java.lang.String urlText, java.lang.String charSet) throws java.io.IOException, java.net.MalformedURLException
urlText
- = the url from where the page should be readcharSet
- = the character set to be used for page-encoding
java.io.IOException
java.net.MalformedURLException
|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |