Code example for ZipEntry

Methods: getName, isDirectory

0
    public final void install( final ZipInputStream aStream ) throws IOException
    { 
        final ZipEntry entry = aStream.getNextEntry();
        if ( entry == null ) return;
 
        if ( entry.isDirectory() == false && entry.getName().startsWith( "META-INF" ) == false )
        { 
            LOG.debug( "installing " + entry + " -> " + entry.getName() );
            myCopyHandler.copy( aStream, entry.getName() );
        } 
        aStream.closeEntry();
 
        install( aStream );
    } 
 
 
 
    private final CopyHandler myCopyHandler;
 
    private static final Logger LOG = LoggerFactory.getLogger(); 
}