public class OSMParser extends Object implements org.openstreetmap.osmosis.core.task.v0_6.Sink, Serializable
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2015-07-26 01:01:13 +0200 (Sun, 26 Jul 2015) $, @version $Revision: 1155 $, by $Author: averbraeck $,
initial version 31 dec. 2014
| Constructor and Description |
|---|
OSMParser(List<OSMTag> wantedTags,
List<String> filteredKeys)
Construct a new OSMParser and set wantedTags and filteredKeys in one call.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
complete() |
OSMNetwork |
getNetwork() |
ProgressListener |
getProgressListener() |
void |
initialize(Map<String,Object> arg0) |
void |
process(org.openstreetmap.osmosis.core.container.v0_6.EntityContainer entityContainer) |
void |
setFilterKeys(List<String> keys)
Set/replace the filter keys.
The provided list is not copied; the caller should not modify the list afterwards. |
void |
setProgressListener(ProgressListener progressListener) |
void |
setWantedTags(List<OSMTag> tags)
Set/replace the list of wanted tags.
This method makes a deep copy of the supplied list. |
String |
toString() |
public void initialize(Map<String,Object> arg0)
initialize in interface org.openstreetmap.osmosis.core.task.v0_6.Initializablepublic final void process(org.openstreetmap.osmosis.core.container.v0_6.EntityContainer entityContainer)
process in interface org.openstreetmap.osmosis.core.task.v0_6.Sinkpublic void close()
close in interface AutoCloseableclose in interface org.openstreetmap.osmosis.core.lifecycle.Closeablepublic final void complete()
complete in interface org.openstreetmap.osmosis.core.lifecycle.Completablepublic final OSMNetwork getNetwork()
public final void setWantedTags(List<OSMTag> tags)
tags - List<OSMTag>; the list of wanted tagspublic final void setFilterKeys(List<String> keys)
keys - List<String>; List<String> list of filter keyspublic final ProgressListener getProgressListener()
public final void setProgressListener(ProgressListener progressListener)
progressListener - ProgressListener; set progressListener.Copyright © 2014–2019 Delft University of Technology. All rights reserved.