|
|||||||||
| Home >> All >> org >> dinopolis >> gpstool >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.dinopolis.gpstool.util
Class GeonetDataConverter

java.lang.Objectorg.dinopolis.gpstool.util.GeonetDataConverter
- public class GeonetDataConverter
- extends java.lang.Object
The GeonetDataConverter reads geonet files and converts them on request to various formats.
- Version:
- $Revision: 1.3 $
| Field Summary | |
(package private) java.util.Map |
cat_name_map_
|
(package private) java.lang.String |
DEFAULT_CATEGORY
|
(package private) FeedBack |
feedback_
|
protected java.text.SimpleDateFormat |
geonet_date_format_
|
static java.lang.String[] |
geonet_keys_
|
(package private) org.dinopolis.util.Resources |
resources_
|
(package private) org.dinopolis.util.io.Tokenizer |
tokenizer_
the tokenizer to read the geonet data |
| Constructor Summary | |
|
GeonetDataConverter(java.io.InputStream input_stream)
Creates and initializes a DataConverter from the given inputstream. |
protected |
GeonetDataConverter(java.io.Reader reader)
Creates and initializes a DataConverter from the given reader. |
|
GeonetDataConverter(java.lang.String filename)
Creates and initializes a DataConverter from the given filename |
| Method Summary | |
java.lang.String |
convertGeonetCategoryName(java.lang.String geonet_cat_name)
Converts the geonet category name to GPSMap category names. |
static java.util.Map |
createKeyMap(java.util.List geonet_line)
Creates a map that uses the geonet keys as keys and the values read from the geonet file as values. |
void |
insertIntoDatabase(java.lang.String driver_name,
java.lang.String jdbc_url,
java.lang.String username,
java.lang.String password)
|
void |
insertIntoLocationMarkerSource(org.dinopolis.gpstool.gui.layer.location.LocationMarkerSource target)
Inserts the content of the geonet file into the given location marker source. |
static void |
main(java.lang.String[] args)
|
void |
setFeedback(FeedBack feedback)
Sets the feedback callback to be informed about progress. |
void |
setResources(org.dinopolis.util.Resources resources)
Sets the resources to read the category names, etc. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
tokenizer_
org.dinopolis.util.io.Tokenizer tokenizer_
- the tokenizer to read the geonet data
resources_
org.dinopolis.util.Resources resources_
cat_name_map_
java.util.Map cat_name_map_
DEFAULT_CATEGORY
java.lang.String DEFAULT_CATEGORY
feedback_
FeedBack feedback_
geonet_keys_
public static final java.lang.String[] geonet_keys_
geonet_date_format_
protected java.text.SimpleDateFormat geonet_date_format_
| Constructor Detail |
GeonetDataConverter
public GeonetDataConverter(java.lang.String filename) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException
- Creates and initializes a DataConverter from the given filename
GeonetDataConverter
protected GeonetDataConverter(java.io.Reader reader)
- Creates and initializes a DataConverter from the given reader.
GeonetDataConverter
public GeonetDataConverter(java.io.InputStream input_stream) throws java.io.UnsupportedEncodingException
- Creates and initializes a DataConverter from the given
inputstream. The Inputstream is initialized for reading UTF-8 data.
| Method Detail |
setResources
public void setResources(org.dinopolis.util.Resources resources)
- Sets the resources to read the category names, etc. from.
setFeedback
public void setFeedback(FeedBack feedback)
- Sets the feedback callback to be informed about progress.
createKeyMap
public static java.util.Map createKeyMap(java.util.List geonet_line)
- Creates a map that uses the geonet keys as keys and the values read
from the geonet file as values. This helps to retrieve special
values without hassling with index numbers.
convertGeonetCategoryName
public java.lang.String convertGeonetCategoryName(java.lang.String geonet_cat_name)
- Converts the geonet category name to GPSMap category names.
insertIntoLocationMarkerSource
public void insertIntoLocationMarkerSource(org.dinopolis.gpstool.gui.layer.location.LocationMarkerSource target) throws java.io.IOException, org.dinopolis.gpstool.gui.layer.location.LocationMarkerSourceException, java.lang.UnsupportedOperationException
- Inserts the content of the geonet file into the given location
marker source. It translates the category keys so they match GPSMap
categories.
insertIntoDatabase
public void insertIntoDatabase(java.lang.String driver_name, java.lang.String jdbc_url, java.lang.String username, java.lang.String password) throws java.sql.SQLException, java.lang.ClassNotFoundException, java.io.IOException, java.text.ParseException
main
public static void main(java.lang.String[] args)
|
|||||||||
| Home >> All >> org >> dinopolis >> gpstool >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.dinopolis.gpstool.util.GeonetDataConverter