|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwindx.examples.kml.KMLDocumentBuilder
public class KMLDocumentBuilder
Utility class to create KML documents.
| Field Summary | |
|---|---|
protected XMLStreamWriter |
writer
|
| Constructor Summary | |
|---|---|
KMLDocumentBuilder(OutputStream stream)
Create a KML document using an OutputStream. |
|
KMLDocumentBuilder(Writer writer)
Create a KML document using a Writer. |
|
| Method Summary | |
|---|---|
void |
close()
Close the document builder. |
protected void |
endDocument()
End the KML document. |
protected void |
startDocument()
Start the KML document and write namespace declarations. |
void |
writeObject(Exportable exportable)
Write an Exportable object to the document. |
void |
writeObjects(Exportable... exportables)
Write a list of Exportable objects to the document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected XMLStreamWriter writer
| Constructor Detail |
|---|
public KMLDocumentBuilder(OutputStream stream)
throws XMLStreamException
stream - Stream to receive KML output.
XMLStreamException - If an error is encountered while writing KML.
public KMLDocumentBuilder(Writer writer)
throws XMLStreamException
writer - Writer to receive KML output.
XMLStreamException - If an error is encountered while writing KML.| Method Detail |
|---|
public void close()
throws XMLStreamException
XMLStreamException - If an error is encountered while writing KML.
protected void endDocument()
throws XMLStreamException
XMLStreamException - If an error is encountered while writing KML.
protected void startDocument()
throws XMLStreamException
XMLStreamException - If an error is encountered while writing KML.
public void writeObject(Exportable exportable)
throws IOException
Exportable object to the document. If the object does not support export in KML format, it will
be ignored.
exportable - Object to export in KML.
IOException - If an error is encountered while writing KML.
public void writeObjects(Exportable... exportables)
throws IOException
Exportable objects to the document. If any objects do not support export in KML format,
they will be ignored.
exportables - List of objects to export in KML.
IOException - If an error is encountered while writing KML.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||