]> gitweb.fperrin.net Git - Dictionary.git/blob - jars/icu4j-4_4_2-src/main/classes/core/src/com/ibm/icu/text/RBNFPostProcessor.java
go
[Dictionary.git] / jars / icu4j-4_4_2-src / main / classes / core / src / com / ibm / icu / text / RBNFPostProcessor.java
1 /*\r
2  *******************************************************************************\r
3  * Copyright (C) 2004-2010, International Business Machines Corporation and    *\r
4  * others. All Rights Reserved.                                                *\r
5  *******************************************************************************\r
6  */\r
7 \r
8 package com.ibm.icu.text;\r
9 \r
10 /**\r
11  * Post processor for RBNF output.\r
12  */\r
13 interface RBNFPostProcessor {\r
14     /**\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
19      */\r
20     void init(RuleBasedNumberFormat formatter, String rules);\r
21 \r
22     /**\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
27      */\r
28     void process(StringBuffer output, NFRuleSet ruleSet);\r
29 }\r