public class KmlBuilder
extends java.lang.Object
Kml documentation can be found at http://code.google.com/apis/kml/ Made for Kml version 2.2
Copyright 2008 Partner Software
| Constructor and Description |
|---|
KmlBuilder()
Creates a new KmlBuilder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addObject(KmlObject object)
Stores a KmlObject to be written into a Kml file.
|
void |
clear()
Erases all objects currently stored.
|
java.lang.String |
generateKml()
Generates a complete Kml document based on stored Kml objects.
|
void |
generateKml(VfsFile file)
Generates a complete Kml document based on stored Kml objects.
|
void |
generateKml(java.io.Writer writer)
Generates a complete Kml document based on stored Kml objects.
|
public void addObject(KmlObject object)
public void clear()
public void generateKml(VfsFile file) throws java.io.IOException
file - - VfsFile to pump kml into.java.io.IOException - - thrown if some IO problem happens.public void generateKml(java.io.Writer writer)
throws java.io.IOException
writer - - Writer to pump Kml into.java.io.IOExceptionpublic java.lang.String generateKml()
throws java.io.IOException
java.io.IOException