planet.io
クラス PlanetDataReader

java.lang.Object
  上位を拡張 fileio.TextDataReader
      上位を拡張 planet.io.PlanetDataReader

public class PlanetDataReader
extends TextDataReader

惑星データ読み込みクラス


フィールドの概要
protected  PlanetDataModel model
          惑星データモデル
 
コンストラクタの概要
PlanetDataReader(PlanetDataModel model)
          惑星データ読み込みオブジェクトを構築する
 
メソッドの概要
protected  Planet parsePlanet(java.util.StringTokenizer st)
          惑星データを読み込む
 void readData(java.io.BufferedReader br)
          データを読み込む
 
クラス fileio.TextDataReader から継承されたメソッド
read, read, read
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

model

protected PlanetDataModel model
惑星データモデル

コンストラクタの詳細

PlanetDataReader

public PlanetDataReader(PlanetDataModel model)
惑星データ読み込みオブジェクトを構築する

パラメータ:
model - 惑星データモデル
メソッドの詳細

readData

public void readData(java.io.BufferedReader br)
              throws java.lang.Exception
データを読み込む

定義:
クラス TextDataReader 内の readData
パラメータ:
br - 入力リーダー
例外:
java.io.IOException - 何らかの理由でファイルが読めなかったとき
java.lang.Exception - 何らかの理由でファイルが読めなかったとき

parsePlanet

protected Planet parsePlanet(java.util.StringTokenizer st)
惑星データを読み込む

パラメータ:
st - データを読み込む StringTokenizer
戻り値:
読み込まれた惑星データ
データを読み込めなかった場合は null を返す