KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ibm > icu > text > NullTransliterator


1 /*
2  *******************************************************************************
3  * Copyright (C) 1996-2004, International Business Machines Corporation and *
4  * others. All Rights Reserved. *
5  *******************************************************************************
6  */

7 package com.ibm.icu.text;
8
9 /**
10  * A transliterator that leaves text unchanged.
11  * @internal
12  */

13 class NullTransliterator extends Transliterator {
14     private static final String JavaDoc COPYRIGHT =
15         "\u00A9 IBM Corporation 2000. All rights reserved.";
16
17     /**
18      * Package accessible IDs for this transliterator.
19      */

20     static String JavaDoc SHORT_ID = "Null";
21     static String JavaDoc _ID = "Any-Null";
22
23     /**
24      * Constructs a transliterator.
25      * @internal
26      */

27     public NullTransliterator() {
28         super(_ID, null);
29     }
30
31     /**
32      * Implements {@link Transliterator#handleTransliterate}.
33      * @internal
34      */

35     protected void handleTransliterate(Replaceable text,
36                                        Position offsets, boolean incremental) {
37         offsets.start = offsets.limit;
38     }
39 }
40
Popular Tags