| java.lang.Object examples.cityguide.Util
Util | public class Util (Code) | | general utilities for CityGuide
|
addLandmarkFromString | final public static void addLandmarkFromString(LandmarkStore store, String record) throws IOException(Code) | | This method creates landmark from values in String record.
Values are separated by comma. Sequence of the values is firm.
Latitude, Longitude, Altitude,Name, Description, Street & house number,
City, Post Code, Phone Number, Category
landmark Parameters: record - comma separated values |
parseSVRecord | final public static Enumeration parseSVRecord(String str, char delimiter)(Code) | | This method parses separated values from record.
String values from record as Enumeration Parameters: str - record containing separated values Parameters: delimiter - values delimiter char |
readLandmarksFromStream | final public static void readLandmarksFromStream(LandmarkStore store, InputStream is, Gauge progressGauge) throws IOException(Code) | | This method reads landmarks from InputStream.
Landmarks are stored in text file as values with delimiter ","
Method updates progress bar.
Parameters: is - character stream containing records of landmarks Parameters: progressGauge - if not null external progress indicator is updated. |
|
|