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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ByteArrayOutputStreamBuildsOutputStreamThis method creates a newDSSDocumentrepresenting 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:AbstractResourcesHandlerBuildsOutputStream- Specified by:
buildOutputStreamin classAbstractResourcesHandler- Returns:
OutputStream
-
writeToDSSDocument
Description copied from interface:DSSResourcesHandlerThis method creates a newDSSDocumentrepresenting a signed document, based on the createdOutputStream.- Returns:
DSSDocument- Throws:
IOException- if an exception occurs during DSSDocument creation
-