Class TeXClassLoaderResources

java.lang.Object
org.scilab.forge.jlatexmath.TeXClassLoaderResources
All Implemented Interfaces:
TeXResourceProvider

public final class TeXClassLoaderResources extends Object implements TeXResourceProvider
A TeXResourceProvider that finds the resources in the class path: the files of src/main/resources/org/scilab/forge/jlatexmath in the jar. It is what the JVM uses; it is a class of its own, and not the default of TeXResources, so that the C build never reaches the code of the class loaders (TeaVM compiles all it can reach, and its support of the resources does not work there).
  • Constructor Details

    • TeXClassLoaderResources

      public TeXClassLoaderResources()
  • Method Details

    • open

      public InputStream open(String name) throws IOException
      Specified by:
      open in interface TeXResourceProvider
      Parameters:
      name - the resource name, without leading slash, for instance org/scilab/forge/jlatexmath/fonts/base/jlm_cmr10.xml
      Returns:
      the content, or null if the resource is unknown
      Throws:
      IOException - on error