static byte[] getJSLibPathBytes () { if (jsLibPathBytes == null) { String[] names = IsPre_4 ? new String[] {MozillaDelegate.getJSLibraryName_Pre4 ()} : MozillaDelegate.getJSLibraryNames (); for (int i = 0; i < names.length; i++) { File file = new File (getMozillaPath (), names[i]); if (file.exists ()) { String pathString = file.getAbsolutePath () + '\0'; try { jsLibPathBytes = pathString.getBytes ("UTF-8"); //$NON-NLS-1$ } catch (UnsupportedEncodingException e) { jsLibPathBytes = pathString.getBytes (); } break; } } } return jsLibPathBytes; }
static byte[] getJSLibPathBytes () { if (jsLibPathBytes == null) { String[] names = MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR10) ? MozillaDelegate.getJSLibraryNames () : new String[] {MozillaDelegate.getJSLibraryName_Pre10 ()}; for (int i = 0; i < names.length; i++) { File file = new File (getMozillaPath (), names[i]); if (file.exists ()) { String pathString = file.getAbsolutePath () + '\0'; try { jsLibPathBytes = pathString.getBytes ("UTF-8"); //$NON-NLS-1$ } catch (UnsupportedEncodingException e) { jsLibPathBytes = pathString.getBytes (); } break; } } } return jsLibPathBytes; }
static byte[] getJSLibPathBytes () { if (jsLibPathBytes == null) { String[] names = MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR10) ? MozillaDelegate.getJSLibraryNames () : new String[] {MozillaDelegate.getJSLibraryName_Pre10 ()}; for (int i = 0; i < names.length; i++) { File file = new File (getMozillaPath (), names[i]); if (file.exists ()) { String pathString = file.getAbsolutePath () + '\0'; try { jsLibPathBytes = pathString.getBytes ("UTF-8"); //$NON-NLS-1$ } catch (UnsupportedEncodingException e) { jsLibPathBytes = pathString.getBytes (); } break; } } } return jsLibPathBytes; }
static byte[] getJSLibPathBytes () { if (jsLibPathBytes == null) { String[] names = MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR10) ? MozillaDelegate.getJSLibraryNames () : new String[] {MozillaDelegate.getJSLibraryName_Pre10 ()}; for (int i = 0; i < names.length; i++) { File file = new File (getMozillaPath (), names[i]); if (file.exists ()) { String pathString = file.getAbsolutePath () + '\0'; try { jsLibPathBytes = pathString.getBytes ("UTF-8"); //$NON-NLS-1$ } catch (UnsupportedEncodingException e) { jsLibPathBytes = pathString.getBytes (); } break; } } } return jsLibPathBytes; }
static byte[] getJSLibPathBytes () { if (jsLibPathBytes == null) { String[] names = MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR10) ? MozillaDelegate.getJSLibraryNames () : new String[] {MozillaDelegate.getJSLibraryName_Pre10 ()}; for (int i = 0; i < names.length; i++) { File file = new File (getMozillaPath (), names[i]); if (file.exists ()) { String pathString = file.getAbsolutePath () + '\0'; try { jsLibPathBytes = pathString.getBytes ("UTF-8"); //$NON-NLS-1$ } catch (UnsupportedEncodingException e) { jsLibPathBytes = pathString.getBytes (); } break; } } } return jsLibPathBytes; }