So at the end of a ZIP file, like the last 64K there is a Central Directory from which you could see what the ZIP file it self contains.
Now I have loaded my ZIP file into a ZipInputStream and before that I have declared a long variable that is the length of the ZIP file - the 64k.
So I want to skip as many bytes and the long variable states, and only start reading info after that. But I dont really understand how the .skip()
method works for ZipInputStream.
After using it, the .getNextEntry()
method will still start from the beginning and .read(byte[64 * 1024])
will tell me that it's the end of the stream which it should not be?
So what is this skip() method actually doing and how can I get my Central Directory?