|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for classes that manage a string of characters representing the content of a document.
Method Summary | |
Position |
createPosition(int offset)
Creates a new Position object at the given initial offset. |
int |
getLength()
Return the length of the content. |
java.lang.String |
getString(int offset,
int length)
Gets a substring of the content. |
void |
insertString(int offset,
java.lang.String s)
Insert a string into the content. |
void |
remove(int offset,
int length)
Deletes the given range of characters. |
Method Detail |
public Position createPosition(int offset)
offset
- initial offset of the positionpublic void insertString(int offset, java.lang.String s)
offset
- Offset at which to insert the string.s
- String to insert.public void remove(int offset, int length)
offset
- Offset from which characters should be deleted.length
- Number of characters to delete.public java.lang.String getString(int offset, int length)
offset
- Offset at which the string begins.length
- Number of characters to return.public int getLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |