]> gitweb.fperrin.net Git - Dictionary.git/blob - jars/icu4j-52_1/main/classes/core/src/com/ibm/icu/text/RBNFPostProcessor.java
Upgrade ICU4J.
[Dictionary.git] / jars / icu4j-52_1 / main / classes / core / src / com / ibm / icu / text / RBNFPostProcessor.java
1 /*
2  *******************************************************************************
3  * Copyright (C) 2004-2010, International Business Machines Corporation and    *
4  * others. All Rights Reserved.                                                *
5  *******************************************************************************
6  */
7
8 package com.ibm.icu.text;
9
10 /**
11  * Post processor for RBNF output.
12  */
13 interface RBNFPostProcessor {
14     /**
15      * Initialization routine for this instance, called once
16      * immediately after first construction and never again.
17      * @param formatter the formatter that will be using this post-processor
18      * @param rules the special rules for this post-procesor
19      */
20     void init(RuleBasedNumberFormat formatter, String rules);
21
22     /**
23      * Work routine.  Post process the output, which was generated by the
24      * ruleset with the given name.
25      * @param output the output of the main RBNF processing
26      * @param ruleSet the rule set originally invoked to generate the output
27      */
28     void process(StringBuffer output, NFRuleSet ruleSet);
29 }