Class ContainerEntryDocument

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

public class ContainerEntryDocument extends eu.europa.esig.dss.model.CommonDocument implements DSSZipEntryDocument
Represents an entry within a ZIP archive, containing its metadata and file's content. This class can be used to create a file entry to be incorporated within an ASiC container with customized ZipEntry metadata (e.g. creation time, compression method, etc.).
See Also:
  • Field Summary

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

    digestMap, mimeType, name
  • Constructor Summary

    Constructors
    Constructor
    Description
    ContainerEntryDocument(eu.europa.esig.dss.model.DSSDocument content)
    Default constructor
    ContainerEntryDocument(eu.europa.esig.dss.model.DSSDocument content, DSSZipEntry zipEntry)
    Constructor with provided DSSZipEntry
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    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

    • ContainerEntryDocument

      public ContainerEntryDocument(eu.europa.esig.dss.model.DSSDocument content)
      Default constructor
      Parameters:
      content - DSSDocument representing file's content
    • ContainerEntryDocument

      public ContainerEntryDocument(eu.europa.esig.dss.model.DSSDocument content, DSSZipEntry zipEntry)
      Constructor with provided DSSZipEntry
      Parameters:
      content - DSSDocument representing file's content
      zipEntry - DSSZipEntry containing metadata about the ZIP entry
  • 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 o)
      Overrides:
      equals in class eu.europa.esig.dss.model.CommonDocument
    • hashCode

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