io.quarkiverse.poi.runtime.graal.XPathFactorySubstitution Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-poi Show documentation
Show all versions of quarkus-poi Show documentation
Read and write files in Microsoft Office formats, such as Word, Excel and PowerPoint
package io.quarkiverse.poi.runtime.graal;
import java.util.Map;
import org.apache.xmlbeans.XmlOptions;
import org.apache.xmlbeans.impl.xpath.Path;
import org.apache.xmlbeans.impl.xpath.XPathFactory;
import org.apache.xmlbeans.impl.xpath.XQuery;
import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;
@TargetClass(XPathFactory.class)
public final class XPathFactorySubstitution {
@Substitute
public static Path getCompiledPathSaxon(String pathExpr, String currentVar, Map namespaces) {
throw new UnsupportedOperationException("Saxon is not supported in native mode");
}
@Substitute
static synchronized XQuery getCompiledQuery(String queryExpr, String currentVar, XmlOptions options) {
throw new UnsupportedOperationException("Saxon is not supported in native mode");
}
}