🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18216

Is there a way to write a zip file without zip entries

#18216
From: Alexander Anguiano
Date: Wed, 29 Jul 1998 00:00
21 lines
1219 bytes
Hello

Is there a way to write a zip file without zip entries.  I try this but, it
wants a ZipEntry

   try {
      ByteArrayOutputStream bout = new ByteArrayOutputStream();
      ZipOutputStream zout = new ZipOutputStream(bout);
      ObjectOutputStream out = new ObjectOutputStream(zout);
      out.writeObject(keywordMap);

      // now get it back\
      ByteArrayInputStream bin= new
ByteArrayInputStream(bout.toByteArray());
      ZipInputStream zin = new ZipInputStream(bin);
      ObjectInputStream in = new ObjectInputStream(zin);
      keywordMap =  (KeywordMap) in.readObject();
      jTextArea1.setText(keywordMap.asArray().toString());
    } catch(Exception e2) {
      e2.printStackTrace();
    }
Technical Details
Message-ID: <6pnjdc$sjb@bgtnsc02.worldnet.att.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,4d4be19c856fcca,start
X-Google-Attributes: gidf74b3,public
From: "Alexander Anguiano" <AlexAnguiano@worldnet.att.net>
Subject: Is there a way to write a zip file without zip entries
Date: 1998/07/29
Message-ID: <6pnjdc$sjb@bgtnsc02.worldnet.att.net>
X-Deja-AN: 376041685
Organization: AT&T WorldNet Services
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Newsgroups: borland.public.jbuilder.java.language