Package org.keycloak.exportimport
Interface ExportAdapter
- 
 public interface ExportAdapterThis adapter allows the exporter to act independent of APIs used to serve the exported data to the caller.- Author:
- Alexander Schwartz
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceExportAdapter.ConsumerOfOutputStreamCustom consumer that is allowed to throw anIOExceptionas writing to an output stream might do this.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetType(String mediaType)Set the mime type of the output.voidwriteToOutputStream(ExportAdapter.ConsumerOfOutputStream consumer)Write to the output stream.
 
- 
- 
- 
Method Detail- 
setTypevoid setType(String mediaType) Set the mime type of the output.- Parameters:
- mediaType- Mime Type
 
 - 
writeToOutputStreamvoid writeToOutputStream(ExportAdapter.ConsumerOfOutputStream consumer) Write to the output stream. Once writing is complete, close it.- Parameters:
- consumer- A consumer to that accepts the output stream.
 
 
- 
 
-