What is the smallest, legal zip/jar file?
Posted
by vkraemer
on Stack Overflow
See other posts from Stack Overflow
or by vkraemer
Published on 2010-03-13T15:06:45Z
Indexed on
2010/03/13
15:15 UTC
Read the original article
Hit count: 311
I hate generating an exception for things that I can simply test with an if statement. I know that a zero length zip/jar will trigger an exception if you try to access it using the java.util.zip/java.util.jar APIs. So, it seems like there should be a smallest file that these utility APIs are capable of working with.
© Stack Overflow or respective owner