Package org.keycloak.exportimport
Interface ExportAdapter
public interface ExportAdapter
This adapter allows the exporter to act independent of APIs used to serve the exported data to the caller.
- Author:
- Alexander Schwartz
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Custom consumer that is allowed to throw anIOException
as writing to an output stream might do this. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Set the mime type of the output.void
Write to the output stream.
-
Method Details
-
setType
Set the mime type of the output.- Parameters:
mediaType
- Mime Type
-
writeToOutputStream
Write to the output stream. Once writing is complete, close it.- Parameters:
consumer
- A consumer to that accepts the output stream.
-