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