LibreOffice Module jvmaccess (master) 1
Functions
jvmaccess::ClassPath Namespace Reference

Helper functions for class path handling. More...

Functions

JVMACCESS_DLLPUBLIC jobjectArray translateToUrls (css::uno::Reference< css::uno::XComponentContext > const &context, JNIEnv *environment, std::u16string_view classPath)
 translates a class path into a java.net.URL[] instance. More...
 

Detailed Description

Helper functions for class path handling.

Function Documentation

◆ translateToUrls()

jobjectArray jvmaccess::ClassPath::translateToUrls ( css::uno::Reference< css::uno::XComponentContext > const &  context,
JNIEnv *  environment,
std::u16string_view  classPath 
)

translates a class path into a java.net.URL[] instance.

Parameters
contexta component context; must not be null.
environmenta JNI environment; must not be null.
classPatha list of zero or more internal (see the com.sun.star.uri.ExternalUriReferenceTranslator service) URI references, where any space characters (U+0020) are ignored (and, in particular, separate adjacent URI references). Any vnd.sun.star.expand URL references in the list are expanded using the com.sun.star.util.theMacroExpander singleton of the given context.
Returns
a local reference to a java.net.URL[] instance containing the external (see the com.sun.star.uri.ExternalUriReferenceTranslator service) equivalents of all the URI references in the given classPath. If null, a (still pending) JNI exception occurred.
Exceptions
com::sun::star::uno::RuntimeException

Definition at line 43 of file classpath.cxx.

References cppu::getCaughtException(), o3tl::getToken(), i, idx, parse(), and result.