Class PdfByteRangeDocument

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

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

    • digestMap

      protected EnumMap<eu.europa.esig.dss.enumerations.DigestAlgorithm, byte[]> digestMap
    • mimeType

      protected eu.europa.esig.dss.enumerations.MimeType mimeType
    • name

      protected String name
  • 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)
    • hashCode

      public int hashCode()
    • save

      public void save(String arg0) throws IOException
      Throws:
      IOException
    • writeTo

      public void writeTo(OutputStream arg0) throws IOException
      Throws:
      IOException
    • getMimeType

      public eu.europa.esig.dss.enumerations.MimeType getMimeType()
    • setMimeType

      public void setMimeType(eu.europa.esig.dss.enumerations.MimeType arg0)
    • getName

      public String getName()
    • setName

      public void setName(String arg0)
    • getDigest

      public eu.europa.esig.dss.model.Digest getDigest(eu.europa.esig.dss.enumerations.DigestAlgorithm arg0)
    • getDigestValue

      public byte[] getDigestValue(eu.europa.esig.dss.enumerations.DigestAlgorithm arg0)
    • toString

      public String toString()
      Overrides:
      toString in class Object