站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

CharSeq (Editor Library) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor.lib/1 1.14.0 3

org.netbeans.editor
Interface CharSeq


public interface CharSeq

Subset of functionality of CharSequence present in JDK1.4.


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

Method Detail

length

int length()
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)
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/1 1.14.0 3

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.