java.util.zip

Class ZipException

Implemented Interfaces:
Serializable
Known Direct Subclasses:
JarException

public class ZipException
extends IOException

Signals that a Zip exception of some sort has occurred.
Since:
JDK1.0
See Also:
IOException, Serialized Form

Constructor Summary

ZipException()
Constructs an ZipException with null as its error detail message.
ZipException(String s)
Constructs an ZipException with the specified detail message.

Method Summary

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

ZipException

public ZipException()
Constructs an ZipException with null as its error detail message.
Usages and Demos :

View More Examples of ZipException()

ZipException

public ZipException(String s)
Constructs an ZipException with the specified detail message.
Parameters:
s - the detail message.
Usages and Demos :

View More Examples of ZipException(String s)
   1:             } catch (InstantiationException ie) {
   2:                 throw new ZipException(ie.getMessage());
   3:             } catch (IllegalAccessException iae) {
   4:         ...
   5:                 throw new ZipException(iae.getMessage());
   6:             }
   7:             start += (length + 4);
   8:         }

View Full Code Here
   1:     } catch (ZipException e) {
   2:       throw new ZipException(e.getMessage() + "; filename was " + p);
   3:     }
   4:     return jfile;
   5:   }

View Full Code Here
   1:             } catch (UnsupportedEncodingException uee) {
   2:                 throw new ZipException(uee.getMessage());
   3:             }
   4:         }
   5:     }

View Full Code Here
   1:             } catch (UnsupportedEncodingException uee) {
   2:                 throw new ZipException(uee.getMessage());
   3:             }
   4:         }
   5:     }

View Full Code Here
   1:                 if (entry == null) {
   2:                     throw new ZipException(Messages.get().getBundle().key(
   3:                         Messages.LOG_IMPORTEXPORT_FILE_NOT_FOUND_IN_ZIP_1,
   4:                         filename));
   5:                 }

View Full Code Here