Class HHCFilter2

All Implemented Interfaces:
IFilter

public class HHCFilter2 extends HTMLFilter2
A filter to translate HHC and HHK files.

  • Constructor Details

    • HHCFilter2

      public HHCFilter2()
  • Method Details

    • loadPlugins

      public static void loadPlugins()
      Register plugin into OmegaT.
    • unloadPlugins

      public static void unloadPlugins()
    • processFile

      public void processFile(BufferedReader infile, BufferedWriter outfile, FilterContext fc) throws IOException, TranslationException
      Overrides:
      processFile in class HTMLFilter2
      Throws:
      IOException
      TranslationException
    • getFileFormatName

      public String getFileFormatName()
      Description copied from class: AbstractFilter
      Human-readable name of the File Format this filter supports.
      Specified by:
      getFileFormatName in interface IFilter
      Overrides:
      getFileFormatName in class HTMLFilter2
      Returns:
      File format name
    • getDefaultInstances

      public Instance[] getDefaultInstances()
      Description copied from class: AbstractFilter
      The default list of filter instances that this filter class has. One filter class may have different filter instances, different by source file mask, encoding of the source file etc.

      Note that the user may change the instances freely.

      Specified by:
      getDefaultInstances in interface IFilter
      Overrides:
      getDefaultInstances in class HTMLFilter2
      Returns:
      Default filter instances
    • getHint

      public String getHint()
      Returns the editing hint for HHC filter.

      In English, the hint is as follows:
      Note: Source File Encoding setting affects only the HHC and HHK files that have no encoding declaration inside. If a HHC or HHK file has an encoding declaration, it will be used disregarding any value you set in this dialog.

      Specified by:
      getHint in interface IFilter
      Overrides:
      getHint in class HTMLFilter2
      Returns:
      The hint for editing the filter in a non-geek language.
    • hasOptions

      public boolean hasOptions()
      Returns true to indicate that a filter has options.
      Specified by:
      hasOptions in interface IFilter
      Overrides:
      hasOptions in class HTMLFilter2
      Returns:
      False, because HHC filter has no options.