Search in sources :

Example 1 with QTI21IMSManifestExplorerVisitor

use of org.olat.ims.qti21.repository.handlers.QTI21IMSManifestExplorerVisitor in project OpenOLAT by OpenOLAT.

the class QTI21ImportProcessor method getInfos.

private QTI21Infos getInfos(Path imsmanifestPath) {
    try {
        QTI21IMSManifestExplorerVisitor visitor = new QTI21IMSManifestExplorerVisitor();
        Files.walkFileTree(imsmanifestPath, visitor);
        return visitor.getInfos();
    } catch (IOException e) {
        log.error("", e);
        return null;
    }
}
Also used : QTI21IMSManifestExplorerVisitor(org.olat.ims.qti21.repository.handlers.QTI21IMSManifestExplorerVisitor) IOException(java.io.IOException)

Example 2 with QTI21IMSManifestExplorerVisitor

use of org.olat.ims.qti21.repository.handlers.QTI21IMSManifestExplorerVisitor in project openolat by klemens.

the class QTI21ImportProcessor method getInfos.

private QTI21Infos getInfos(Path imsmanifestPath) {
    try {
        QTI21IMSManifestExplorerVisitor visitor = new QTI21IMSManifestExplorerVisitor();
        Files.walkFileTree(imsmanifestPath, visitor);
        return visitor.getInfos();
    } catch (IOException e) {
        log.error("", e);
        return null;
    }
}
Also used : QTI21IMSManifestExplorerVisitor(org.olat.ims.qti21.repository.handlers.QTI21IMSManifestExplorerVisitor) IOException(java.io.IOException)

Aggregations

IOException (java.io.IOException)2 QTI21IMSManifestExplorerVisitor (org.olat.ims.qti21.repository.handlers.QTI21IMSManifestExplorerVisitor)2