Class LanguageDataBroker

java.lang.Object
org.omegat.languagetools.LanguageDataBroker
All Implemented Interfaces:
org.languagetool.broker.ResourceDataBroker

public class LanguageDataBroker extends Object implements org.languagetool.broker.ResourceDataBroker
  • Constructor Details

    • LanguageDataBroker

      public LanguageDataBroker(String resourceDir, String rulesDir)
    • LanguageDataBroker

      public LanguageDataBroker()
  • Method Details

    • getFromResourceDirAsUrl

      @NotNull public @NotNull URL getFromResourceDirAsUrl(String path)
      Specified by:
      getFromResourceDirAsUrl in interface org.languagetool.broker.ResourceDataBroker
    • getFromResourceDirAsUrls

      @NotNull public @NotNull List<URL> getFromResourceDirAsUrls(String path)
      Specified by:
      getFromResourceDirAsUrls in interface org.languagetool.broker.ResourceDataBroker
    • resourceExists

      public boolean resourceExists(String path)
      Specified by:
      resourceExists in interface org.languagetool.broker.ResourceDataBroker
    • ruleFileExists

      public boolean ruleFileExists(String path)
      Specified by:
      ruleFileExists in interface org.languagetool.broker.ResourceDataBroker
    • getFromResourceDirAsStream

      @NotNull public @NotNull InputStream getFromResourceDirAsStream(String path)
      Specified by:
      getFromResourceDirAsStream in interface org.languagetool.broker.ResourceDataBroker
    • getFromResourceDirAsLines

      @NotNull public @NotNull List<String> getFromResourceDirAsLines(String path)
      Specified by:
      getFromResourceDirAsLines in interface org.languagetool.broker.ResourceDataBroker
    • getAsStream

      public InputStream getAsStream(String path)
      Specified by:
      getAsStream in interface org.languagetool.broker.ResourceDataBroker
    • getAsURL

      public URL getAsURL(String path)
      Specified by:
      getAsURL in interface org.languagetool.broker.ResourceDataBroker
    • getAsURLs

      @NotNull public @NotNull List<URL> getAsURLs(String path)
      Specified by:
      getAsURLs in interface org.languagetool.broker.ResourceDataBroker
    • getFromRulesDirAsUrl

      @NotNull public @NotNull URL getFromRulesDirAsUrl(String path)
      Specified by:
      getFromRulesDirAsUrl in interface org.languagetool.broker.ResourceDataBroker
    • getFromRulesDirAsStream

      @NotNull public @NotNull InputStream getFromRulesDirAsStream(String path)
      Specified by:
      getFromRulesDirAsStream in interface org.languagetool.broker.ResourceDataBroker
    • getResourceDir

      public String getResourceDir()
      Specified by:
      getResourceDir in interface org.languagetool.broker.ResourceDataBroker
    • getRulesDir

      public String getRulesDir()
      Specified by:
      getRulesDir in interface org.languagetool.broker.ResourceDataBroker
    • getResourceBundle

      public ResourceBundle getResourceBundle(String baseName, Locale locale)
      Specified by:
      getResourceBundle in interface org.languagetool.broker.ResourceDataBroker