Class FileArchiveEntry

java.lang.Object
eu.europa.esig.dss.model.CommonDocument
eu.europa.esig.dss.asic.common.FileArchiveEntry
All Implemented Interfaces:
DSSZipEntryDocument, eu.europa.esig.dss.model.DSSDocument, Serializable

public class FileArchiveEntry extends eu.europa.esig.dss.model.CommonDocument implements DSSZipEntryDocument
Internal class that is used for performance purposes, accessing ZIP-archive entries on request, instead of loading all files into memory.
See Also:
  • Field Summary

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

    digestMap, mimeType, name
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    FileArchiveEntry(eu.europa.esig.dss.model.FileDocument zipArchive, ZipEntry zipEntry)
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object object)
     
    Returns ZIP entry wrapper containing metadata about a file within a ZIP-container
    int
     
     
    void
     

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

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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface eu.europa.esig.dss.model.DSSDocument

    getDigest, getDigestValue, getMimeType, getName, save, setMimeType, writeTo
  • Constructor Details

    • FileArchiveEntry

      protected FileArchiveEntry(eu.europa.esig.dss.model.FileDocument zipArchive, ZipEntry zipEntry)
      Default constructor
      Parameters:
      zipArchive - FileDocument representing a ZIP-container
      zipEntry - DSSZipEntry containing metadata for zip container entry to be extracted
  • Method Details

    • openStream

      public InputStream openStream()
      Specified by:
      openStream in interface eu.europa.esig.dss.model.DSSDocument
    • setName

      public void setName(String name)
      Specified by:
      setName in interface eu.europa.esig.dss.model.DSSDocument
      Overrides:
      setName in class eu.europa.esig.dss.model.CommonDocument
    • getZipEntry

      public DSSZipEntry getZipEntry()
      Description copied from interface: DSSZipEntryDocument
      Returns ZIP entry wrapper containing metadata about a file within a ZIP-container
      Specified by:
      getZipEntry in interface DSSZipEntryDocument
      Returns:
      DSSZipEntry
    • 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