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
ModifierConstructorDescriptionprotected
Default constructor instantiating object with null OutputStream -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract OutputStream
BuildsOutputStream
void
close()
This method creates a newOutputStream
to be used as an output for a temporary signature documentprotected OutputStream
This method returns the internal OutputStream instanceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:DSSResourcesHandler
This method creates a newOutputStream
to be used as an output for a temporary signature document- Specified by:
createOutputStream
in 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-