Package org.digidoc4j.impl.asic.asice
Class AsicEContainer
java.lang.Object
org.digidoc4j.impl.asic.AsicContainer
org.digidoc4j.impl.asic.asice.AsicEContainer
- All Implemented Interfaces:
Serializable
,Container
,org.digidoc4j.impl.ValidatableContainer
- Direct Known Subclasses:
BDocContainer
Created by Andrei on 7.11.2017.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.digidoc4j.Container
Container.DocumentType
-
Constructor Summary
ConstructorsConstructorDescriptionAsicEContainer constructor.AsicEContainer
(InputStream stream) Deprecated.Deprecated for removal.AsicEContainer
(InputStream stream, Configuration configuration) Deprecated.Deprecated for removal.AsicEContainer
(String containerPath) Deprecated.Deprecated for removal.AsicEContainer
(String containerPath, Configuration configuration) Deprecated.Deprecated for removal.AsicEContainer
(Configuration configuration) AsicEContainer constructor.AsicEContainer
(AsicParseResult containerParseResult, Configuration configuration) AsicEContainer constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTimestamp
(Timestamp timestamp) Adds a new timestamp token covering the contents of this container.Deprecated.void
removeTimestamp
(Timestamp timestamp) Removes the specified timestamp token from this container.void
save
(OutputStream out) Saves the container to the java.io.OutputStream.void
setTimeStampToken
(DataFile timeStampToken) Deprecated.Methods inherited from class org.digidoc4j.impl.asic.AsicContainer
addDataFile, addDataFile, addDataFile, addDataFile, addSignature, extendSignatureProfile, extendSignatureProfile, getConfiguration, getContainerParseResult, getDataFiles, getExtensionValidationErrors, getExtensionValidationErrors, getSignatures, getType, isTimestampTokenDefined, removeDataFile, removeSignature, saveAsFile, saveAsStream, setType, validate, validateAt
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.digidoc4j.Container
getTimestamps
-
Constructor Details
-
AsicEContainer
public AsicEContainer()AsicEContainer constructor. -
AsicEContainer
AsicEContainer constructor.- Parameters:
configuration
- configuration
-
AsicEContainer
Deprecated.Deprecated for removal. UseContainerOpener.open(String)
orContainerBuilder.fromExistingFile(String)
instead.AsicEContainer constructor.- Parameters:
containerPath
- path
-
AsicEContainer
Deprecated.Deprecated for removal. UseContainerOpener.open(String, Configuration)
orContainerBuilder.fromExistingFile(String)
instead.AsicEContainer constructor.- Parameters:
containerPath
- pathconfiguration
- configuration
-
AsicEContainer
Deprecated.Deprecated for removal. UseContainerOpener.open(InputStream, Configuration)
orContainerBuilder.fromStream(InputStream)
instead.AsicEContainer constructor.- Parameters:
stream
- input stream
-
AsicEContainer
Deprecated.Deprecated for removal. UseContainerOpener.open(InputStream, Configuration)
orContainerBuilder.fromStream(InputStream)
instead.AsicEContainer constructor- Parameters:
stream
- input streamconfiguration
- configuration
-
AsicEContainer
AsicEContainer constructor- Parameters:
containerParseResult
- container parsed resultconfiguration
- configuration
-
-
Method Details
-
save
Description copied from interface:Container
Saves the container to the java.io.OutputStream.- Parameters:
out
- output stream.- See Also:
-
addTimestamp
Description copied from interface:Container
Adds a new timestamp token covering the contents of this container.- Parameters:
timestamp
- timestamp to add to this container
-
removeTimestamp
Description copied from interface:Container
Removes the specified timestamp token from this container.Note: A timestamp token can be removed from a container only if the container does not contain any other timestamp tokens that cover the timestamp token to be removed.
- Parameters:
timestamp
- timestamp token to remove from this container
-
getTimeStampToken
Deprecated.Description copied from interface:Container
Returns timestamp token- Returns:
- TimestampToken
-
setTimeStampToken
Deprecated.Description copied from interface:Container
Adds timestamp token- Parameters:
timeStampToken
- timestamp token
-