Class RBNFChinesePostProcessor

  • All Implemented Interfaces:
    RBNFPostProcessor

    final class RBNFChinesePostProcessor
    extends java.lang.Object
    implements RBNFPostProcessor
    A post-processor for Chinese text.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int format  
      private boolean longForm  
      private static java.lang.String[] rulesetNames  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void init​(RuleBasedNumberFormat formatter, java.lang.String rules)
      Initialization routine for this instance, called once immediately after first construction and never again.
      void process​(java.lang.StringBuilder buf, NFRuleSet ruleSet)
      Work routine.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • longForm

        private boolean longForm
      • format

        private int format
      • rulesetNames

        private static final java.lang.String[] rulesetNames
    • Constructor Detail

      • RBNFChinesePostProcessor

        RBNFChinesePostProcessor()
    • Method Detail

      • init

        public void init​(RuleBasedNumberFormat formatter,
                         java.lang.String rules)
        Initialization routine for this instance, called once immediately after first construction and never again.
        Specified by:
        init in interface RBNFPostProcessor
        Parameters:
        formatter - the formatter that will be using this post-processor
        rules - the special rules for this post-procesor
      • process

        public void process​(java.lang.StringBuilder buf,
                            NFRuleSet ruleSet)
        Work routine. Post process the output, which was generated by the ruleset with the given name.
        Specified by:
        process in interface RBNFPostProcessor
        Parameters:
        buf - the output of the main RBNF processing
        ruleSet - the rule set originally invoked to generate the output