01: /*
02: * Javolution - Java(TM) Solution for Real-Time and Embedded Systems
03: * Copyright (C) 2006 - Javolution (http://javolution.org/)
04: * All rights reserved.
05: *
06: * Permission to use, copy, modify, and distribute this software is
07: * freely granted, provided that this notice is preserved.
08: */
09: package javolution.text;
10:
11: import j2me.lang.CharSequence;
12:
13: import java.io.IOException;
14:
15: /**
16: * <p> This class is equivalent to <code>java.lang.Appendable</code>
17: * and is moved (refactored) to the <code>java.lang</code> system
18: * package for applications targetting the J2SE 5.0+ run-time.</p>
19: *
20: * @author <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a>
21: * @version 2.0, November 26, 2004
22: */
23: public interface Appendable {
24:
25: /**
26: * Appends the specified character.
27: *
28: * @param c the character to append.
29: * @return <code>this</code>
30: */
31: Appendable append(char c) throws IOException;
32:
33: /**
34: * Appends the specified character sequence.
35: *
36: * @param csq the character sequence to append.
37: * @return <code>this</code>
38: */
39: Appendable append(CharSequence csq) throws IOException;
40:
41: /**
42: * Appends a subsequence of the specified character sequence.
43: *
44: * @param csq the character sequence to append.
45: * @param start the index of the first character to append.
46: * @param end the index after the last character to append.
47: * @return <code>this</code>
48: */
49: Appendable append(CharSequence csq, int start, int end)
50: throws IOException;
51:
52: }
|