198 |
byte[] buffer = new byte[Math.max(nameLen, commentLen)]; |
byte[] buffer = new byte[Math.max(nameLen, commentLen)]; |
199 |
|
|
200 |
raf.readFully(buffer, 0, nameLen); |
raf.readFully(buffer, 0, nameLen); |
201 |
String name = new String(buffer, 0, nameLen, "UTF8"); |
String name = new String(buffer, 0, nameLen); |
202 |
|
|
203 |
ZipEntry entry = new ZipEntry(name); |
ZipEntry entry = new ZipEntry(name); |
204 |
entry.setMethod(method); |
entry.setMethod(method); |
215 |
if (commentLen > 0) |
if (commentLen > 0) |
216 |
{ |
{ |
217 |
raf.readFully(buffer, 0, commentLen); |
raf.readFully(buffer, 0, commentLen); |
218 |
entry.setComment(new String(buffer, 0, commentLen, "UTF8")); |
entry.setComment(new String(buffer, 0, commentLen)); |
219 |
} |
} |
220 |
entry.zipFileIndex = i; |
entry.zipFileIndex = i; |
221 |
entry.offset = offset; |
entry.offset = offset; |