Code example for ZipEntry

Methods: getName

        // unzip the result 
        ZipInputStream zis = new ZipInputStream(new ByteArrayInputStream(bos.toByteArray()));
        Document dom = null;
        ZipEntry entry = zis.getNextEntry(); 
        assertEquals("Buildings.kml", entry.getName());
        dom = dom(zis);
        // some very light assumptions on the contents, since we 
        // cannot control how ogr encodes the kml... let's just assess 
        // it's kml with the proper number of features 
        assertEquals("kml", dom.getDocumentElement().getTagName());
        assertEquals(2, dom.getElementsByTagName("Placemark").getLength());
    public void testEmptyKML() throws Exception {
        // prepare input 
        FeatureCollection fc = dataStore.getFeatureSource("Buildings").getFeatures(Filter.EXCLUDE);