Class AbstractResourcesHandler
java.lang.Object
eu.europa.esig.dss.signature.resources.AbstractResourcesHandler
- All Implemented Interfaces:
DSSResourcesHandler,Closeable,AutoCloseable
- Direct Known Subclasses:
InMemoryResourcesHandler,TempFileResourcesHandler
Abstract class used to create OutputStream to be used across DSS code
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor instantiating object with null OutputStream -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract OutputStreamBuildsOutputStreamvoidclose()This method creates a newOutputStreamto be used as an output for a temporary signature documentprotected OutputStreamThis method returns the internal OutputStream instanceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface eu.europa.esig.dss.signature.resources.DSSResourcesHandler
writeToDSSDocument
-
Constructor Details
-
AbstractResourcesHandler
protected AbstractResourcesHandler()Default constructor instantiating object with null OutputStream
-
-
Method Details
-
createOutputStream
Description copied from interface:DSSResourcesHandlerThis method creates a newOutputStreamto be used as an output for a temporary signature document- Specified by:
createOutputStreamin interfaceDSSResourcesHandler- Returns:
OutputStream- Throws:
IOException- if an exception occurs during OutputStream creation
-
buildOutputStream
BuildsOutputStream- Returns:
OutputStream- Throws:
IOException- if an error occurs while building OutputStream
-
getOutputStream
This method returns the internal OutputStream instance- Returns:
OutputStream
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-