com.sony.csl.j2me.locationapitools
Class LocationAPIUtilities

java.lang.Object
  extended by com.sony.csl.j2me.locationapitools.LocationAPIUtilities

public class LocationAPIUtilities
extends java.lang.Object

A class with useful methods that deal with specific status fields of classes in the JSR-179 Location API

Author:
mstevens (Sony CSL Paris / Vrije Universiteit Brussel)

Constructor Summary
LocationAPIUtilities()
           
 
Method Summary
static java.lang.String coordinatesTuple(Coordinates coords, boolean forceAltitudeToZero, java.lang.String separator)
           
static java.lang.String getLocationAPISettings(LocationProxy locationProxy)
           
static boolean isLocationApiSupported()
          Checks whether the JSR-179 Location API is supported.
static java.lang.String locationMethodFlags(int locationMethod)
           
static java.lang.String locationMethodFlags(Location location)
           
static java.lang.String locationProviderState(int locationProviderState)
           
static java.lang.String locationProviderState(LocationProvider locationProvider)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocationAPIUtilities

public LocationAPIUtilities()
Method Detail

isLocationApiSupported

public static boolean isLocationApiSupported()
Checks whether the JSR-179 Location API is supported.

Returns:
a boolean indicating whether the JSR-179 Location API supported.

locationProviderState

public static java.lang.String locationProviderState(LocationProvider locationProvider)

locationProviderState

public static java.lang.String locationProviderState(int locationProviderState)

locationMethodFlags

public static java.lang.String locationMethodFlags(Location location)

locationMethodFlags

public static java.lang.String locationMethodFlags(int locationMethod)

getLocationAPISettings

public static java.lang.String getLocationAPISettings(LocationProxy locationProxy)

coordinatesTuple

public static java.lang.String coordinatesTuple(Coordinates coords,
                                                boolean forceAltitudeToZero,
                                                java.lang.String separator)