MCPcopy Create free account
hub / github.com/L-JINBIN/ApkDataMultiplexing / putNextHostEntry

Method putNextHostEntry

src/bin/zip/ZipMaker.java:184–195  ·  view source on GitHub ↗
(String name, ZipFile zipFile)

Source from the content-addressed store, hash-verified

182 }
183
184 public HostEntryHolder putNextHostEntry(String name, ZipFile zipFile) throws IOException {
185 if (name.endsWith("/") || name.endsWith("\\")) {
186 throw new IOException("Invalid host entry name: " + name);
187 }
188 int savedMethod = method;
189 method = METHOD_STORED;
190 CenterFileHeader centerFileHeader = new CenterFileHeader(name);
191 centerFileHeader.isHost = true;
192 putNextEntry(centerFileHeader);
193 method = savedMethod;
194 return new HostEntryHolder(zipFile);
195 }
196
197 public class HostEntryHolder {
198 private final CenterFileHeader hostHeader;

Callers 1

optimizeMethod · 0.80

Calls 1

putNextEntryMethod · 0.95

Tested by

no test coverage detected