Code example for ZipException

0
        } 
 
        int version = buffer[offset];
 
        if (version != 0x01) {
            throw new ZipException("Unsupported version [" + version
                                   + "] for UniCode path extra data."); 
        } 
 
        nameCRC32 = ZipLong.getValue(buffer, offset + 1);
        unicodeName = new byte[length - 5];
        System.arraycopy(buffer, offset + 5, unicodeName, 0, length - 5);
        data = null;
    } 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE