Class InMemoryResourcesHandler
java.lang.Object
eu.europa.esig.dss.signature.resources.AbstractResourcesHandler
eu.europa.esig.dss.signature.resources.InMemoryResourcesHandler
- All Implemented Interfaces:
DSSResourcesHandler
,Closeable
,AutoCloseable
This class represents an in-memory implementation of
DSSResourcesFactory
.
Using this class, all the objects handling during document signing will be stored in memory.
NOTE: this class is used as a default implementation in DSS-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ByteArrayOutputStream
BuildsOutputStream
This method creates a newDSSDocument
representing a signed document, based on the createdOutputStream
.Methods inherited from class eu.europa.esig.dss.signature.resources.AbstractResourcesHandler
close, createOutputStream, getOutputStream
-
Constructor Details
-
InMemoryResourcesHandler
public InMemoryResourcesHandler()Default constructor
-
-
Method Details
-
buildOutputStream
Description copied from class:AbstractResourcesHandler
BuildsOutputStream
- Specified by:
buildOutputStream
in classAbstractResourcesHandler
- Returns:
OutputStream
-
writeToDSSDocument
Description copied from interface:DSSResourcesHandler
This method creates a newDSSDocument
representing a signed document, based on the createdOutputStream
.- Returns:
DSSDocument
- Throws:
IOException
- if an exception occurs during DSSDocument creation
-