public interface ContentImporter
Modifier and Type | Method and Description |
---|---|
int |
getPriority()
Get the importer priority.
|
Set<String> |
importContents(InputStream is,
Map<String,Object> params)
Import the contents from the file.
|
boolean |
supports(InputStream is,
String name)
Tests if the
ContentImporter is able to import the corresponding stream.Implementing classes should first test the file extension, if possible, and if the name is provided. |
boolean supports(InputStream is, String name) throws IOException
ContentImporter
is able to import the corresponding stream.is
- an input stream on the file, cannot be null. The stream is closed by the caller.name
- the file name, can be null.ContentImporter
can import the corresponding stream, false otherwise.IOException
- if an error occurs.int getPriority()
Set<String> importContents(InputStream is, Map<String,Object> params) throws IOException
is
- an input stream on the file, cannot be null. The stream is closed by the caller.params
- input or output parameters.IOException
- if an error occurs importing the contents.