2 *******************************************************************************
\r
3 * Copyright (C) 2004-2010, International Business Machines Corporation and *
\r
4 * others. All Rights Reserved. *
\r
5 *******************************************************************************
\r
8 package com.ibm.icu.text;
\r
11 * Post processor for RBNF output.
\r
13 interface RBNFPostProcessor {
\r
15 * Initialization routine for this instance, called once
\r
16 * immediately after first construction and never again.
\r
17 * @param formatter the formatter that will be using this post-processor
\r
18 * @param rules the special rules for this post-procesor
\r
20 void init(RuleBasedNumberFormat formatter, String rules);
\r
23 * Work routine. Post process the output, which was generated by the
\r
24 * ruleset with the given name.
\r
25 * @param output the output of the main RBNF processing
\r
26 * @param ruleSet the rule set originally invoked to generate the output
\r
28 void process(StringBuffer output, NFRuleSet ruleSet);
\r