users
[Top] [All Lists]

Re: [cinjug-users] Creating a self extracting zip.

To: "CinJug" <users@xxxxxxxxxx>
Subject: Re: [cinjug-users] Creating a self extracting zip.
From: "Edward Sumerfield" <esumerfd@xxxxxxxxxxx>
Date: Wed, 28 Apr 2004 14:55:16 -0400
Delivered-to: mailing list users@cinjug.org
Mailing-list: contact users-help@cinjug.org; run by ezmlm
References: <560BB48D9A412D42AEF874777A93511E09BAD9D4@exchq5.cinfin.com>
You could add a main entrypoint to a jar file and includes the pdfs. Your
main method would open the jar that it is in and extract the pdf files using
standard java. Here is some code I use to extract html templates from a jar
file.

            JarFile jarFile = new JarFile(jarPath);
            ZipEntry zipFile = jarFile.getEntry(templatePath);
            if (null == zipFile)
            {
                throw new TemplateException("template not found");
            }

            InputStream fileIn = jarFile.getInputStream(zipFile);

----- Original Message ----- 
From: "Straw, Jerry" <Jerry_Straw@xxxxxxxxxx>
To: <users@xxxxxxxxxx>
Sent: Wednesday, April 28, 2004 2:30 PM
Subject: [cinjug-users] Creating a self extracting zip.


> I have several pdf documents that I need to consolidate into a
> self-extracting zip file and email to participants.  This all needs to
> happen automatically in the back ground.  The only problem I am currently
> experiencing is creating the self extracting zip file.  Does anyone know
of
> any api's (preferably free) that can help me to accomplish this?
>
> Thanks
>
> Jerry Straw
>
> ---------
> You may unsubscribe from this mailing list
> by sending a blank email addressed to:
> users-unsubscribe@xxxxxxxxxx
>
> --
> Find additional help by sending a blank email
> addressed to:
> users-help@xxxxxxxxxx
>


<Prev in Thread] Current Thread [Next in Thread>