public class SakaiArchiveFileParser extends ZipFileParser
| Modifier and Type | Field and Description |
|---|---|
protected Document |
importMappings |
localArchiveLocation, mimeTypes, pathToData| Constructor and Description |
|---|
SakaiArchiveFileParser() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
awakeFromUnzip(String unArchiveLocation) |
protected Collection |
getCategoriesFromArchive(String pathToData) |
protected Collection |
getImportableItemsFromArchive(String pathToData) |
boolean |
isValidArchive(InputStream fileData) |
ImportFileParser |
newParser() |
ImportDataSource |
parse(InputStream fileData,
String unArchiveLocation) |
extractFileAsDOM, fileExistsInArchive, getBytesFromFile, unzipArchiveprotected Document importMappings
public boolean isValidArchive(InputStream fileData)
isValidArchive in interface ImportFileParserisValidArchive in class ZipFileParserprotected void awakeFromUnzip(String unArchiveLocation)
awakeFromUnzip in class ZipFileParserpublic ImportFileParser newParser()
public ImportDataSource parse(InputStream fileData, String unArchiveLocation)
parse in interface ImportFileParserparse in class ZipFileParserprotected Collection getCategoriesFromArchive(String pathToData)
getCategoriesFromArchive in class ZipFileParserprotected Collection getImportableItemsFromArchive(String pathToData)
getImportableItemsFromArchive in class ZipFileParserCopyright © 2003–2021 Sakai Project. All rights reserved.