org.aminds.util
クラス CharArray

java.lang.Object
  上位を拡張 org.aminds.util.CharArray
すべての実装されたインタフェース:
Appendable, CharSequence, Readable

public class CharArray
extends Object
implements CharSequence, Appendable, Readable

作成者:
Masashi Nakanishi

フィールドの概要
protected  int count
           
protected  char[] value
           
 
コンストラクタの概要
CharArray()
           
CharArray(char[] cbuf, boolean wrap)
           
CharArray(char[] cbuf, int len, boolean wrap)
           
CharArray(char[] cbuf, int off, int len)
           
CharArray(int initCapacity)
           
 
メソッドの概要
 Appendable append(char c)
           
 Appendable append(CharSequence csq)
           
 Appendable append(CharSequence csq, int start, int end)
           
 Appendable append(String str)
           
 Appendable append(StringBuffer sb)
           
 Appendable append(StringBuilder sb)
           
 int capacity()
           
 char charAt(int index)
           
 void ensureCapacity(int minimumCapacity)
           
 void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)
           
 char[] getValue()
          Get the raw array
 int length()
           
 int read(CharBuffer cb)
           
 void setLength(int newLength)
           
 CharSequence subSequence(int start, int end)
           
 String toString()
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

value

protected char[] value

count

protected int count
コンストラクタの詳細

CharArray

public CharArray()

CharArray

public CharArray(int initCapacity)
          throws IllegalArgumentException
例外:
IllegalArgumentException

CharArray

public CharArray(char[] cbuf,
                 int off,
                 int len)
          throws NullPointerException,
                 IndexOutOfBoundsException
例外:
NullPointerException
IndexOutOfBoundsException

CharArray

public CharArray(char[] cbuf,
                 boolean wrap)
          throws NullPointerException
例外:
NullPointerException

CharArray

public CharArray(char[] cbuf,
                 int len,
                 boolean wrap)
          throws NullPointerException,
                 IndexOutOfBoundsException
例外:
NullPointerException
IndexOutOfBoundsException
メソッドの詳細

capacity

public int capacity()

ensureCapacity

public void ensureCapacity(int minimumCapacity)

getValue

public char[] getValue()
Get the raw array

戻り値:
internal array of chars

getChars

public void getChars(int srcBegin,
                     int srcEnd,
                     char[] dst,
                     int dstBegin)

setLength

public void setLength(int newLength)

charAt

public char charAt(int index)
定義:
インタフェース CharSequence 内の charAt

length

public int length()
定義:
インタフェース CharSequence 内の length

subSequence

public CharSequence subSequence(int start,
                                int end)
定義:
インタフェース CharSequence 内の subSequence

toString

public String toString()
定義:
インタフェース CharSequence 内の toString
オーバーライド:
クラス Object 内の toString

append

public Appendable append(char c)
                  throws IOException
定義:
インタフェース Appendable 内の append
例外:
IOException

append

public Appendable append(CharSequence csq)
                  throws IOException
定義:
インタフェース Appendable 内の append
例外:
IOException

append

public Appendable append(CharSequence csq,
                         int start,
                         int end)
                  throws IOException
定義:
インタフェース Appendable 内の append
例外:
IOException

append

public Appendable append(String str)
                  throws IOException
例外:
IOException

append

public Appendable append(StringBuilder sb)
                  throws IOException
例外:
IOException

append

public Appendable append(StringBuffer sb)
                  throws IOException
例外:
IOException

read

public int read(CharBuffer cb)
         throws IOException
定義:
インタフェース Readable 内の read
例外:
IOException


Copyright (c) 2008-2011 Masashi Nakanishi.