01: /*
02: *******************************************************************************
03: * Copyright (C) 1996-2004, International Business Machines Corporation and *
04: * others. All Rights Reserved. *
05: *******************************************************************************
06: */
07: package com.ibm.icu.text;
08:
09: /**
10: * A transliterator that leaves text unchanged.
11: * @internal
12: */
13: class NullTransliterator extends Transliterator {
14: private static final String COPYRIGHT = "\u00A9 IBM Corporation 2000. All rights reserved.";
15:
16: /**
17: * Package accessible IDs for this transliterator.
18: */
19: static String SHORT_ID = "Null";
20: static String _ID = "Any-Null";
21:
22: /**
23: * Constructs a transliterator.
24: * @internal
25: */
26: public NullTransliterator() {
27: super (_ID, null);
28: }
29:
30: /**
31: * Implements {@link Transliterator#handleTransliterate}.
32: * @internal
33: */
34: protected void handleTransliterate(Replaceable text,
35: Position offsets, boolean incremental) {
36: offsets.start = offsets.limit;
37: }
38: }
|