|
Java プラットフォーム 1.2 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Object
|
+--java.io.Reader
|
+--java.io.StringReader
ソースが文字列の文字ストリームです。
| クラス java.io.Reader から継承したフィールド |
lock |
| コンストラクタの概要 | |
StringReader(String s)
新しい文字列リーダを作成します。 |
|
| メソッドの概要 | |
void |
close()
ストリームを閉じます。 |
void |
mark(int readAheadLimit)
ストリームの現在位置にマークを設定します。 |
boolean |
markSupported()
このストリームが、実行する mark() 操作をサポートするかどうかを通知します。 |
int |
read()
単一の文字を読み込みます。 |
int |
read(char[] cbuf,
int off,
int len)
配列の一部に文字を読み込みます。 |
boolean |
ready()
このストリームが読み込み可能かどうかを判定します。 |
void |
reset()
直前のマーク位置にストリームをリセットします。 |
long |
skip(long ns)
文字をスキップします。 |
| クラス java.io.Reader から継承したメソッド |
read |
| クラス java.lang.Object から継承したメソッド |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| コンストラクタの詳細 |
public StringReader(String s)
| メソッドの詳細 |
public int read()
throws IOException
public int read(char[] cbuf,
int off,
int len)
throws IOException
cbuf - 転送先バッファoff - 文字の書き込み開始オフセットlen - 読み込む文字の最大数
public long skip(long ns)
throws IOException
public boolean ready()
throws IOException
public boolean markSupported()
public void mark(int readAheadLimit)
throws IOException
readAheadLimit - マークを保持しながら読み込むことができる文字数の上限。ストリームへは文字列から入力されるので、実際の上限はない。そのため、この引数は負の値であってはならない。そうでない場合は、無視される
public void reset()
throws IOException
public void close()
|
Java プラットフォーム 1.2 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||