org.netbeans.modules.editor.lib/3 3.23.0 19

org.netbeans.editor
Interface CharSeq


Deprecated. use DocumentUtilities.getText(javax.swing.text.Document) to obtain CharSequence instance from a document instead.

public interface CharSeq

Subset of functionality of CharSequence present in JDK1.4.


Method Summary
 char charAt(int index)
          Deprecated. Returns the character at the specified index.
 int length()
          Deprecated. Returns the length of this character sequence.
 

Method Detail

length

int length()
Deprecated. 
Returns the length of this character sequence. The length is the number of 16-bit Unicode characters in the sequence.

Returns:
the number of characters in this sequence

charAt

char charAt(int index)
Deprecated. 
Returns the character at the specified index. An index ranges from zero to length() - 1. The first character of the sequence is at index zero, the next at index one, and so on, as for array indexing.

Parameters:
index - the index of the character to be returned
Returns:
the specified character
Throws:
IndexOutOfBoundsException - if the index argument is negative or not less than length()

org.netbeans.modules.editor.lib/3 3.23.0 19

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.