public class GpxWriter extends XmlWriter implements GpxConstants
Modifier and Type | Field and Description |
---|---|
private GpxData |
data |
private String |
indent |
private static int |
ROUTE_POINT |
private static int |
TRACK_POINT |
private static int |
WAY_POINT |
JOSM_EXTENSIONS_NAMESPACE_URI, META_AUTHOR_EMAIL, META_AUTHOR_LINK, META_AUTHOR_NAME, META_COPYRIGHT_AUTHOR, META_COPYRIGHT_LICENSE, META_COPYRIGHT_YEAR, META_DESC, META_EXTENSIONS, META_KEYWORDS, META_LINKS, META_NAME, META_PREFIX, META_TIME, WPT_KEYS
Constructor and Description |
---|
GpxWriter(OutputStream out) |
GpxWriter(PrintWriter out) |
Modifier and Type | Method and Description |
---|---|
private void |
close(String tag) |
private void |
closeln(String tag) |
private void |
gpxExtensions(Extensions extensions) |
private void |
gpxLink(GpxLink link)
output link
|
private void |
inline(String tag,
String attributes) |
private void |
open(String tag) |
private void |
openAtt(String tag,
String attributes) |
private void |
openln(String tag) |
private void |
simpleTag(String tag,
String content)
if content not null, open tag, write encoded content, and close tag
else do nothing.
|
private void |
wayPoint(WayPoint pnt,
int mode)
output a point
|
void |
write(GpxData data) |
private void |
writeAttr(IWithAttributes obj) |
private void |
writeMetaData() |
private void |
writeRoutes() |
private void |
writeTracks() |
private void |
writeWayPoints() |
private static final int WAY_POINT
private static final int ROUTE_POINT
private static final int TRACK_POINT
public GpxWriter(PrintWriter out)
public GpxWriter(OutputStream out) throws UnsupportedEncodingException
UnsupportedEncodingException
private void writeAttr(IWithAttributes obj)
private void writeMetaData()
private void writeWayPoints()
private void writeRoutes()
private void writeTracks()
private void simpleTag(String tag, String content)
private void gpxExtensions(Extensions extensions)