Code example for ZipException

0
     * @throws java.util.zip.ZipException on error 
     */ 
    public void parseFromLocalFileData(byte[] data, int offset, int length) 
        throws ZipException { 
        if (length != 0) { 
            throw new ZipException("JarMarker doesn't expect any data"); 
        } 
    } 
}