Package org.sakaiproject.importer.api
Interface ImportFileParser
-
public interface ImportFileParser
A parser is a class that understands how to read an archive file and extract from it a vendor-neutral collection of content objects. This is the interface you should implement if you have an importer which is going to parse a new type of archive.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isValidArchive(InputStream fileData)
ImportFileParser
newParser()
Factory method to create a new instance of this parser.ImportDataSource
parse(InputStream fileData, String unArchiveLocation)
-
-
-
Method Detail
-
isValidArchive
boolean isValidArchive(InputStream fileData)
-
parse
ImportDataSource parse(InputStream fileData, String unArchiveLocation)
-
newParser
ImportFileParser newParser()
Factory method to create a new instance of this parser.- Returns:
- A new instance of this parser.
-
-