Class PdfByteRangeDocument

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

public class PdfByteRangeDocument extends eu.europa.esig.dss.model.CommonDocument
Internal representation of a PDF document. Used to reduce memory overloading during the execution.
See Also:
  • Field Summary

    Fields inherited from class eu.europa.esig.dss.model.CommonDocument

    digestMap, mimeType, name
  • Constructor Summary

    Constructors
    Constructor
    Description
    PdfByteRangeDocument(eu.europa.esig.dss.model.DSSDocument pdfDocument, ByteRange byteRange)
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object object)
     
    Returns the ByteRange of the document
    int
     
     

    Methods inherited from class eu.europa.esig.dss.model.CommonDocument

    getDigest, getDigestValue, getMimeType, getName, save, setMimeType, setName, toString, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PdfByteRangeDocument

      public PdfByteRangeDocument(eu.europa.esig.dss.model.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()
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class eu.europa.esig.dss.model.CommonDocument
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class eu.europa.esig.dss.model.CommonDocument