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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceCustom consumer that is allowed to throw anIOExceptionas writing to an output stream might do this. -
Method Summary
Modifier and TypeMethodDescriptionvoidSet the mime type of the output.voidWrite 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.
-