|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.extension.jdbc.gen.internal.data.DumpFileTokenizer
public class DumpFileTokenizer
ダンプファイル内のトークンを認識するクラスです。
入れ子のクラスの概要 | |
---|---|
static class |
DumpFileTokenizer.TokenType
トークンタイプ |
フィールドの概要 | |
---|---|
protected java.lang.StringBuilder |
buf
バッファ |
protected char |
delimiter
区切り文字 |
protected boolean |
endOfFile
ファイルの終端の場合 true |
protected int |
length
バッファの長さ |
protected int |
nextPos
バッファ内の次の位置 |
protected int |
pos
バッファ内の現在位置 |
protected java.lang.String |
token
トークン |
protected DumpFileTokenizer.TokenType |
type
トークンのタイプ |
コンストラクタの概要 | |
---|---|
DumpFileTokenizer(char delimiter)
インスタンスを構築します。 |
メソッドの概要 | |
---|---|
void |
addChars(char[] chars,
int len)
文字をchar配列として追加します。 |
java.lang.String |
getToken()
トークンを返します。 |
protected boolean |
isCRLF(int index)
CRLFを表す場合 true |
protected boolean |
isEndOfLine(int index)
行の終端の場合 true を返します。 |
DumpFileTokenizer.TokenType |
nextToken()
次のトークンタイプを返します。 |
protected void |
peek(int index)
次のトークンを前もって調べます。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
protected java.lang.StringBuilder buf
protected int pos
protected int nextPos
protected int length
protected char delimiter
protected DumpFileTokenizer.TokenType type
protected java.lang.String token
protected boolean endOfFile
true
コンストラクタの詳細 |
---|
public DumpFileTokenizer(char delimiter)
delimiter
- 区切り文字メソッドの詳細 |
---|
public void addChars(char[] chars, int len)
chars
- char配列としての文字len
- 有効な文字の長さ、ファイルの終端の場合-1protected void peek(int index)
index
- 開始インデックスprotected boolean isEndOfLine(int index)
true
を返します。
index
- 開始インデックス
true
protected boolean isCRLF(int index)
true
index
- 開始インデックス
true
public DumpFileTokenizer.TokenType nextToken()
public java.lang.String getToken()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |