Class PdfByteRangeDocument

java.lang.Object
eu.europa.esig.dss.model.CommonDocument
eu.europa.esig.dss.pades.validation.PdfByteRangeDocument
All Implemented Interfaces:
DSSDocument, Serializable

public class PdfByteRangeDocument extends CommonDocument
Internal representation of a PDF document. Used to reduce memory overloading during the execution.
See Also:
  • Constructor Details

    • PdfByteRangeDocument

      public PdfByteRangeDocument(DSSDocument pdfDocument, ByteRange byteRange)
      Default constructor
      Parameters:
      pdfDocument - DSSDocument input PDF document to read
      byteRange - ByteRange of the revision to be read
  • Method Details

    • getByteRange

      public ByteRange getByteRange()
      Returns the ByteRange of the document
      Returns:
      ByteRange
    • openStream

      public InputStream openStream()
      Description copied from interface: DSSDocument
      Opens a InputStream on the DSSDocument contents. The type of the InputStream depends on the type of the DSSDocument.
      Returns:
      an InputStream