~ubuntu-branches/ubuntu/vivid/icu4j-4.4/vivid

« back to all changes in this revision

Viewing changes to main/classes/core/src/com/ibm/icu/text/RBNFPostProcessor.java

  • Committer: Bazaar Package Importer
  • Author(s): Niels Thykier
  • Date: 2011-08-02 15:50:33 UTC
  • Revision ID: james.westby@ubuntu.com-20110802155033-itjzsl21y2lqdonn
Tags: upstream-4.4.2
ImportĀ upstreamĀ versionĀ 4.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
}