(ZipEntry ze, ZipFile zipFile)
| 170 | } |
| 171 | |
| 172 | public void copyZipEntry(ZipEntry ze, ZipFile zipFile) throws IOException { |
| 173 | putNextRawEntry(ze); |
| 174 | if (!ze.isDirectory()) { |
| 175 | InputStream is = zipFile.getRawInputStream(ze); |
| 176 | byte[] buffer = copyEntryBuffer; |
| 177 | int len; |
| 178 | while ((len = is.read(buffer)) != -1) { |
| 179 | writeRaw(buffer, 0, len); |
| 180 | } |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | public HostEntryHolder putNextHostEntry(String name, ZipFile zipFile) throws IOException { |
| 185 | if (name.endsWith("/") || name.endsWith("\\")) { |
no test coverage detected