@SuppressWarnings( {
    """
	Add the given resources.
	
	@param resources the resources to add
	@param zOut      the stream to write to
    """"JavaDoc"})
    protected final void addResources( ResourceIterator resources, ZipArchiveOutputStream zOut )
        throws IOException, ArchiverException
    {
        File base = null;

        while ( resources.hasNext() )
        {
            ArchiveEntry entry = resources.next();
            String name = entry.getName();
            name = name.replace( File.separatorChar, '/' );

            if ( "".equals( name ) )
            {
                continue;
            }

            if ( entry.getResource().isDirectory() && !name.endsWith( "/" ) )
            {
                name = name + "/";
            }

            addParentDirs( entry, base, name, zOut, "" );

            if ( entry.getResource().isFile() )
            {
                zipFile( entry, zOut, name );
            }
            else
            {
                zipDir( entry.getResource(), zOut, name, entry.getMode() );
            }
        }
    }
@SuppressWarnings({"JavaDoc"})
    protected final void addResources( ResourceIterator resources, ZipArchiveOutputStream zOut )
        throws IOException, ArchiverException
    {
        File base = null;

        while ( resources.hasNext() )
        {
            ArchiveEntry entry = resources.next();
            String name = entry.getName();
            name = name.replace( File.separatorChar, '/' );

            if ( "".equals( name ) )
            {
                continue;
            }

            if ( entry.getResource().isDirectory() && !name.endsWith( "/" ) )
            {
                name = name + "/";
            }

            addParentDirs( entry, base, name, zOut, "" );

            if ( entry.getResource().isFile() )
            {
                zipFile( entry, zOut, name );
            }
            else
            {
                zipDir( entry.getResource(), zOut, name, entry.getMode() );
            }
        }
    }
@ SuppressWarnings ( { "JavaDoc" } ) protected final void addResources ( ResourceIterator resources , ZipArchiveOutputStream zOut ) throws IOException , ArchiverException { File base = null ; while ( resources . hasNext ( ) ) { ArchiveEntry entry = resources . next ( ) ; String name = entry . getName ( ) ; name = name . replace ( File . separatorChar , ' ' ) ; if ( "" . equals ( name ) ) { continue ; } if ( entry . getResource ( ) . isDirectory ( ) && ! name . endsWith ( "/" ) ) { name = name + "/" ; } addParentDirs ( entry , base , name , zOut , "" ) ; if ( entry . getResource ( ) . isFile ( ) ) { zipFile ( entry , zOut , name ) ; } else { zipDir ( entry . getResource ( ) , zOut , name , entry . getMode ( ) ) ; } } }
Add the given resources.

@param resources the resources to add
@param zOut      the stream to write to
Add the given resources .