文字列への読み書きストリーム
コンストラクタの概要 | |
---|---|
static TextStream
|
new()
初期化を行う |
メソッドの概要 | |
---|---|
void
|
close()
ストリームを閉じる |
string
|
get()
現在の読み込み位置から 1 文字を読み込み、読み書き位置を一つ進める |
int
|
getPointer()
現在の読み書き位置を取得する |
string
|
readLine()
現在の読み込み位置から、改行またはファイル末端まで読み込む |
boolean
|
ready()
テキストストリームが読み込み可能な状態かどうかを返す |
void
|
setPointer(int value)
現在の読み書き位置を設定する |
string
|
toString()
ストリームに書きこまれた文字列を連結し、返す |
void
|
write(string str)
文字列をストリームに書きこむ |
void
|
writeLine(string str)
文字列をストリームに書きこむ。 |
コンストラクタの詳細 |
---|
public static TextStream new()
メソッドの詳細 |
---|
public void close()
public string get()
public int getPointer()
public string readLine()
public boolean ready()
true
を、そうでなければ false
を返す public void setPointer(int value)
value
- 設定する読み書き位置
public string toString()
public void write(string str)
str
- 書きこむ文字列
public void writeLine(string str)
str
- 書きこむ文字列