be.fedict.eid.applet.service.util
Class KmlLight

java.lang.Object
  extended by be.fedict.eid.applet.service.util.KmlLight

public class KmlLight
extends java.lang.Object

A "light" implementation of OGC standard KML 2.2 This class merely creates the KMZ zip package

Author:
Bart Hanssens
See Also:
http://www.opengeospatial.org/standards/kml/

Field Summary
static java.lang.String MIME_TYPE
           
 
Constructor Summary
KmlLight(java.io.OutputStream outStream)
          Constructor
 
Method Summary
 void addImage(byte[] image)
          Add an image (photo) to the KMZ zip
 void addKmlFile(byte[] doc)
          Add the KML file to the KMZ zip
 void close()
          Close the KMZ zip file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIME_TYPE

public static final java.lang.String MIME_TYPE
See Also:
Constant Field Values
Constructor Detail

KmlLight

public KmlLight(java.io.OutputStream outStream)
Constructor

Parameters:
outStream -
Method Detail

addImage

public void addImage(byte[] image)
              throws java.io.IOException
Add an image (photo) to the KMZ zip

Parameters:
image -
Throws:
java.io.IOException

addKmlFile

public void addKmlFile(byte[] doc)
                throws java.io.IOException
Add the KML file to the KMZ zip

Parameters:
doc - KML document
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Close the KMZ zip file

Throws:
java.io.IOException


Copyright © 2008-2011 FedICT. All Rights Reserved.