virtual public void Close() { isBack = false; byteSource.Close(); }
/// <summary><inheritDoc/></summary> /// <exception cref="System.IO.IOException"/> public virtual void Close() { source.Close(); }
/// <summary>Does nothing - the underlying source is not closed</summary> /// <exception cref="System.IO.IOException"/> public virtual void Close() { source.Close(); getBufferStart = -1; getBufferEnd = -1; }
/** * Constructs a new PdfReader. This is the master constructor. * @param byteSource source of bytes for the reader * @param partialRead if true, the reader is opened in partial mode (PDF is parsed on demand), if false, the entire PDF is parsed into memory as the reader opens * @param ownerPassword the password or null if no password is required * @param certificate the certificate or null if no certificate is required * @param certificateKey the key or null if no certificate key is required * @param certificateKeyProvider the name of the key provider, or null if no key is required * @param closeSourceOnConstructorError if true, the byteSource will be closed if there is an error during construction of this reader */ private PdfReader(IRandomAccessSource byteSource, bool partialRead, byte[] ownerPassword, X509Certificate certificate, ICipherParameters certificateKey, bool closeSourceOnConstructorError) { this.certificate = certificate; this.certificateKey = certificateKey; this.password = ownerPassword; this.partial = partialRead; try { tokens = GetOffsetTokeniser(byteSource); if (partialRead) ReadPdfPartial(); else ReadPdf(); } catch (IOException e) { if (closeSourceOnConstructorError) byteSource.Close(); throw e; } GetCounter().Read(fileLength); }
/// <exception cref="System.IO.IOException"/> public virtual void Close() { lock (lockObj) { source.Close(); } }