Package gov.nasa.worldwind.poi
Class POIUtils
- java.lang.Object
-
- gov.nasa.worldwind.poi.POIUtils
-
public class POIUtils extends java.lang.Object
Utilites for working with points of interest and gazetteers.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
DEFAULT_CHARSET_NAME
-
Constructor Summary
Constructors Constructor Description POIUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
callService(java.lang.String urlString)
Invoke a point-of-interest service.protected static java.lang.String
decodeBuffer(java.nio.ByteBuffer buffer, java.lang.String charsetName)
protected static java.lang.String
getCharsetName(java.lang.String contentType)
-
-
-
Field Detail
-
DEFAULT_CHARSET_NAME
protected static final java.lang.String DEFAULT_CHARSET_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
callService
public static java.lang.String callService(java.lang.String urlString) throws NoItemException, ServiceException
Invoke a point-of-interest service.- Parameters:
urlString
- the URL to use to invoke the service.- Returns:
- the service results.
- Throws:
NoItemException
- ifHTTP_BAD_REQUEST
is returned from the service.ServiceException
- if there is a problem invoking the service or retrieving its results.
-
decodeBuffer
protected static java.lang.String decodeBuffer(java.nio.ByteBuffer buffer, java.lang.String charsetName)
-
getCharsetName
protected static java.lang.String getCharsetName(java.lang.String contentType)
-
-