KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javolution > text > Appendable


1 /*
2  * Javolution - Java(TM) Solution for Real-Time and Embedded Systems
3  * Copyright (C) 2006 - Javolution (http://javolution.org/)
4  * All rights reserved.
5  *
6  * Permission to use, copy, modify, and distribute this software is
7  * freely granted, provided that this notice is preserved.
8  */

9 package javolution.text;
10
11 import j2me.lang.CharSequence;
12
13 import java.io.IOException JavaDoc;
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 JavaDoc append(char c) throws IOException JavaDoc;
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 JavaDoc append(CharSequence JavaDoc csq) throws IOException JavaDoc;
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 JavaDoc append(CharSequence JavaDoc csq, int start, int end) throws IOException JavaDoc;
50
51 }
Popular Tags