All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkiverse.poi.runtime.graal.CleanerNotSupportedSubstitution Maven / Gradle / Ivy

Go to download

Read and write files in Microsoft Office formats, such as Word, Excel and PowerPoint

There is a newer version: 2.1.0
Show newest version
package io.quarkiverse.poi.runtime.graal;

import org.apache.poi.poifs.nio.CleanerUtil;

import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;

@Substitute
@TargetClass(CleanerUtil.class)
public final class CleanerNotSupportedSubstitution {

    /**
     * true, if this platform supports unmapping mmapped files.
     */
    public static final boolean UNMAP_SUPPORTED = false;

    /**
     * if {@link #UNMAP_SUPPORTED} is {@code false}, this contains the reason
     * why unmapping is not supported.
     */
    public static final String UNMAP_NOT_SUPPORTED_REASON = "Not supported on GraalVM native-image";

    private static final org.apache.poi.poifs.nio.CleanerUtil.BufferCleaner CLEANER = null;

    /**
     * Reference to a BufferCleaner that does unmapping.
     *
     * @return {@code null} if not supported.
     */
    public static org.apache.poi.poifs.nio.CleanerUtil.BufferCleaner getCleaner() {
        return CLEANER;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy