@Override public synchronized boolean busy() { return super.busy(); }
@Override public synchronized void close() throws IOException { super.close(); }
/** * Returns the file comment. * * @return The file comment. */ public @Nullable String getComment() { final byte[] comment = this.comment; return null == comment ? null : decode(comment); }
final ReadOnlyFile rof = new SafeBufferedReadOnlyFile(rof(), length); while (0 < this.postamble) { long fp = length - postamble; if (utf8) this.charset = UTF8; final E entry = this.param.newEntry(decode(name)); try { int off = 0; parameters( WinZipAesParameters.class, getCryptoParameters()), entry)); field = (WinZipAesEntryExtraField) method = field.getMethod(); final int bufSize = getBufferSize(entry); CountingInputStream din = null; InputStream in;
brof = new SafeBufferedReadOnlyFile(rof, this.length); if (!param.getPreambled()) checkZipFileSignature(brof); final int numEntries = findCentralDirectory(brof, param.getPostambled()); mountCentralDirectory(brof, numEntries); if (this.preamble + this.postamble >= this.length) { assert 0 == numEntries; if (param.getPreambled()) // otherwise already checked checkZipFileSignature(brof);
final boolean process) throws IOException { final ReadOnlyFile rof = rof(); if (name == null) throw new NullPointerException(); parameters( WinZipAesParameters.class, getCryptoParameters()), entry)); erof = eerof; throw new CRC32Exception(name, entry.getCrc(), localCrc); final int bufSize = getBufferSize(entry); InputStream in; switch (method) {
@CreatesObligation @edu.umd.cs.findbugs.annotations.SuppressWarnings("OBL_UNSATISFIED_OBLIGATION") AppendingLEDataOutputStream( final @WillCloseWhenClosed OutputStream out, final @WillNotClose RawZipFile<?> appendee) { super(out); assert null != out; super.written = appendee.getOffsetMapper().unmap(appendee.length()); } } // AppendingLEDataOutputStream
@Override @SuppressWarnings("deprecation") protected synchronized InputStream getInputStream( String name, Boolean check, boolean process) throws IOException { final InputStream in = super.getInputStream(name, check, process); return in == null ? null : new de.schlichtherle.truezip.io.SynchronizedInputStream(in, this); }
/** * Returns a clone of the entry for the given name or {@code null} if no * entry with this name exists. * * @param name the name of the ZIP entry. */ @Override public ZipEntry getEntry(String name) { final ZipEntry ze = super.getEntry(name); return ze != null ? ze.clone() : null; }
/** * Equivalent to {@link #getInputStream(String, Boolean, boolean) * getInputStream(name, null, true)}. */ @CreatesObligation public final @Nullable InputStream getInputStream(String name) throws IOException { return getInputStream(name, null, true); }
/** * Equivalent to {@link #getInputStream(String, Boolean, boolean) * getInputStream(name, true, true)}. */ @CreatesObligation public final @Nullable InputStream getCheckedInputStream(String name) throws IOException { return getInputStream(name, true, true); }
@CreatesObligation @edu.umd.cs.findbugs.annotations.SuppressWarnings("OBL_UNSATISFIED_OBLIGATION") public ZipInputShop( final ZipDriver driver, final FsModel model, final @WillCloseWhenClosed ReadOnlyFile rof) throws IOException { super(rof, driver); this.driver = driver; if (null == (this.model = model)) { final NullPointerException ex = new NullPointerException(); try { super.close(); } catch (final Throwable ex2) { if (JSE7.AVAILABLE) ex.addSuppressed(ex2); } throw ex; } }
/** * Equivalent to {@link #getInputStream(String, Boolean, boolean) * getInputStream(entry.getName(), null, true)} instead. */ @CreatesObligation public final @Nullable InputStream getInputStream(ZipEntry entry) throws IOException { return getInputStream(entry.getName(), null, true); }
/** * Equivalent to {@link #getInputStream(String, Boolean, boolean) * getInputStream(entry.getName(), true, true)} instead. */ @CreatesObligation public final @Nullable InputStream getCheckedInputStream(ZipEntry entry) throws IOException { return getInputStream(entry.getName(), true, true); }