Code example for JarEntry

0
    } 
 
    public void modifyOutputStream( JarOutputStream jos )
        throws IOExceptionjos.putNextEntry( new JarEntry( resource ) );
 
        new XMLOutputter( Format.getPrettyFormat() ).output( doc, jos );
 
        doc = null; 
    } 
}