public interface ContentImporter
| Modifier and Type | Method and Description |
|---|---|
String[] |
getMimeTypes()
Returns all mime types handled by this importer.
|
void |
importContent(File file,
ModifiableWebContent content,
Map<String,String> params)
Extracts file content and populates the given
Content. |
void |
postTreatment(ModifiablePage page,
Content content,
File file)
Post treatment after import process
|
void importContent(File file, ModifiableWebContent content, Map<String,String> params) throws IOException
Content.
Typical usage is to provide a newly created empty Content.file - the source.content - the Content to be populated.params - in/out params to set and get additional data to and from the importer.IOException - if an error occurs processing the stream.String[] getMimeTypes()
void postTreatment(ModifiablePage page, Content content, File file) throws IOException
page - The created pagecontent - The created contentfile - The imported fileIOException - if an error occurred