Home | History | Annotate | Download | only in text
      1 /* GENERATED SOURCE. DO NOT MODIFY. */
      2 //  2016 and later: Unicode, Inc. and others.
      3 // License & terms of use: http://www.unicode.org/copyright.html#License
      4 /*
      5  *******************************************************************************
      6  * Copyright (C) 2004-2010, International Business Machines Corporation and    *
      7  * others. All Rights Reserved.                                                *
      8  *******************************************************************************
      9  */
     10 
     11 package android.icu.text;
     12 
     13 /**
     14  * Post processor for RBNF output.
     15  */
     16 interface RBNFPostProcessor {
     17     /**
     18      * Initialization routine for this instance, called once
     19      * immediately after first construction and never again.
     20      * @param formatter the formatter that will be using this post-processor
     21      * @param rules the special rules for this post-procesor
     22      */
     23     void init(RuleBasedNumberFormat formatter, String rules);
     24 
     25     /**
     26      * Work routine.  Post process the output, which was generated by the
     27      * ruleset with the given name.
     28      * @param output the output of the main RBNF processing
     29      * @param ruleSet the rule set originally invoked to generate the output
     30      */
     31     void process(StringBuilder output, NFRuleSet ruleSet);
     32 }
     33