|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.limewire.geocode.AbstractGeocoder
public abstract class AbstractGeocoder
| Constructor Summary | |
|---|---|
AbstractGeocoder()
|
|
| Method Summary | |
|---|---|
void |
clear()
Clears the saved information, including that in the client. |
GeocodeInformation |
getGeocodeInformation()
Returns the GeocodeInformationImpl obtained from
Geocoder.initialize(). |
boolean |
hasFailed()
Returns true if we've called Geocoder.initialize() and
something happened. |
boolean |
isReady()
Returns true if Geocoder.getGeocodeInformation() will
return a non-null value or Geocoder.hasFailed() is true. |
protected void |
setGeocodeInformation(InputStream is)
Read the lines and set the fields appropriately. |
protected void |
setInvalid(Throwable reasonForFailure)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.limewire.geocode.Geocoder |
|---|
initialize |
| Constructor Detail |
|---|
public AbstractGeocoder()
| Method Detail |
|---|
public GeocodeInformation getGeocodeInformation()
GeocoderGeocodeInformationImpl obtained from
Geocoder.initialize().
getGeocodeInformation in interface GeocoderGeocodeInformationImpl obtained from
Geocoder.initialize()public boolean isReady()
Geocodertrue if Geocoder.getGeocodeInformation() will
return a non-null value or Geocoder.hasFailed() is true.
isReady in interface Geocodertrue if Geocoder.getGeocodeInformation() will
return a non-null value or Geocoder.hasFailed() is
truepublic boolean hasFailed()
Geocodertrue if we've called Geocoder.initialize() and
something happened.
hasFailed in interface Geocodertrue if we've called Geocoder.initialize() and
something happenedpublic void clear()
Geocoder
clear in interface Geocoderprotected void setInvalid(Throwable reasonForFailure)
protected void setGeocodeInformation(InputStream is)
throws IOException
\t). The name
correspond to the set method on GeocodeInformationImpl.
For example:
countryName United States would cause a call
to g.setCountryName("United States").
is - input lines of the form
<first line ignored>
( String[Name] <tab> String[Value] <newline> )
[ repeat name/value pairs ]
IOException
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||