01: /*
02: * (C) Copyright IBM Corp. 1998-2004. All Rights Reserved.
03: *
04: * The program is provided "as is" without any warranty express or
05: * implied, including the warranty of non-infringement and the implied
06: * warranties of merchantibility and fitness for a particular purpose.
07: * IBM will not be liable for any damages suffered by you as a result
08: * of using the Program. In no event will IBM be liable for any
09: * special, indirect or consequential damages or lost profits even if
10: * IBM has been advised of the possibility of their occurrence. IBM
11: * will not be liable for any third party claims against you.
12: */
13: package com.ibm.richtext.styledtext;
14:
15: import java.text.CharacterIterator;
16:
17: /** A dynamic character array optimized for sequences of insert
18: or delete operations in a local region. */
19:
20: abstract class MCharBuffer {
21: static final String COPYRIGHT = "(C) Copyright IBM Corp. 1998-1999 - All Rights Reserved";
22:
23: abstract void replace(int start, int limit, MConstText text,
24: int srcStart, int srcLimit);
25:
26: abstract void replace(int start, int limit, char[] srcChars,
27: int srcStart, int srcLimit);
28:
29: abstract void replace(int start, int limit, String srcString,
30: int srcStart, int srcLimit);
31:
32: abstract void replace(int start, int limit, char srcChar);
33:
34: abstract CharacterIterator createCharacterIterator(int start,
35: int limit);
36:
37: abstract char at(int pos);
38:
39: abstract void at(int start, int limit, char[] dst, int dstStart);
40:
41: abstract int length();
42:
43: abstract int capacity();
44:
45: abstract void reserveCapacity(int pos, int length);
46:
47: abstract void compress();
48: }
|