@Test public void getsCorrectSize() throws Exception { File bundleFile = TestUtils.getTestDataFile(APP_BUNDLE); try (ZipFile zipFile = new ZipFile(bundleFile)) { ZipEntry entry = zipFile.getEntry("base/manifest/AndroidManifest.xml"); ZipFileData data = new ZipFileData(zipFile, entry); assertThat(data.getSize()).isEqualTo(2099L); } }
@Override public long getSize() { return entry.getSize(); }
ZipFileData implements FileData { @Override public long getSize() { return entry.getSize(); } }
ZipFileData implements FileData { @Override public long getSize() { return entry.getSize(); } ZipFileData(ZipFile zipFile, ZipEntry entry); }
ZipFileData implements FileData { @Override public long getSize() { return entry.getSize(); } ZipFileData(ZipFile zipFile, ZipEntry entry); @Override @MustBeClosed InputStream getInputStream(); @Override Path getPathWithinRoot(); @Override Path getPathWithinModule(); @Override long getSize(); long getCompressedSize(); }
ZipFileData implements FileData { @Override public long getSize() { return entry.getSize(); } ZipFileData(ZipFile zipFile, ZipEntry entry); @Override @MustBeClosed InputStream getInputStream(); @Override Path getPathWithinRoot(); @Override Path getPathWithinModule(); @Override long getSize(); long getCompressedSize();  }