Results 1 to 1 of 1
- 02-14-2008, 05:28 PM #1
Member
- Join Date
- Feb 2008
- Posts
- 60
- Rep Power
- 0
ZipOutputStream "duplicate entry"
Hi all,
I have a program which downloads a bunch of documents from a remote server and after, bundles them up in a .zip file using ZipOutputStream.
The problem is that when I download the files, there could be more than one file with the same file name. So, when I try to put an entry with the same file name which is in already ZipOutputStream, it will throw an exception "duplicate entry".
Is there a way, I can check for duplicate entry, before adding the zip entry to ZipOutputStream? so I can rename the duplicate file?
Please advise...
Thanks.
Similar Threads
-
Hwlp with "Open", "Save", "Save as..."
By trill in forum New To JavaReplies: 3Last Post: 11-02-2010, 10:26 AM -
failure at Class.forName("oracle.jdbc.driver.OracleDriver");
By RonNYC in forum EclipseReplies: 1Last Post: 03-14-2008, 03:51 PM -
Exception in thread "main" java.net.ConnectException: Connection timed out
By osval in forum Advanced JavaReplies: 1Last Post: 07-27-2007, 11:59 PM -
Error: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
By romina in forum New To JavaReplies: 1Last Post: 07-25-2007, 11:55 PM -
ArrayList: Exception in thread "main" java.lang.NullPointerException
By susan in forum New To JavaReplies: 1Last Post: 07-16-2007, 07:32 AM
Bookmarks