jp.mosp.common.common
クラス PoiReadUtility

java.lang.Object
  上位を拡張 jp.mosp.common.common.PoiReadUtility

public class PoiReadUtility
extends Object

Excelファイル読込ユーティリティ

2008/11/28

導入されたバージョン:
1.1.4
バージョン:
0.0.2
作成者:
m.yoshida

フィールドの概要
protected static String SHEET_NAME
          シート名
 
コンストラクタの概要
PoiReadUtility()
          デフォルトコンストラクタ
PoiReadUtility(File file)
          コンストラクタ
PoiReadUtility(String filePath)
          コンストラクタ
 
メソッドの概要
protected  org.apache.poi.hssf.usermodel.HSSFCell getCell()
          セル取得
protected  String getCellValue(short cellno)
          指定セルの値取得(String型)
protected  Date getDateCellValue()
          セルの値取得(Date型)
protected  double getNumberCellValue()
          セルの値取得(double型)
protected  org.apache.poi.hssf.usermodel.HSSFRow getRow()
          列取得
protected  org.apache.poi.hssf.usermodel.HSSFSheet getSheet()
          シート取得
protected  String getStringCellValue()
          セルの値取得(String型)
protected  String getStringCellValue(short cellno)
          指定セルの値取得(String型)
protected  void setCell(short cellno)
          セル設定
protected  void setRow(org.apache.poi.hssf.usermodel.HSSFRow row)
          列設定
protected  void setRow(int rowno)
          列設定
protected  void setSheet()
          シート設定
protected  void setSheet(String sheetname)
          シート設定(指定シート)
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

SHEET_NAME

protected static final String SHEET_NAME
シート名

関連項目:
定数フィールド値
コンストラクタの詳細

PoiReadUtility

public PoiReadUtility()
デフォルトコンストラクタ


PoiReadUtility

public PoiReadUtility(String filePath)
コンストラクタ

パラメータ:
filePath - 絶対ファイルパス

PoiReadUtility

public PoiReadUtility(File file)
コンストラクタ

パラメータ:
file - ファイル名
メソッドの詳細

getSheet

protected org.apache.poi.hssf.usermodel.HSSFSheet getSheet()
シート取得

戻り値:
sheet

setSheet

protected void setSheet()
                 throws MospException
シート設定

例外:
MospException

setSheet

protected void setSheet(String sheetname)
                 throws MospException
シート設定(指定シート)

パラメータ:
sheetname - シート名
例外:
MospException

setCell

protected void setCell(short cellno)
セル設定

パラメータ:
cellno - cell番号

setRow

protected void setRow(org.apache.poi.hssf.usermodel.HSSFRow row)
列設定

パラメータ:
row - row番号

getCell

protected org.apache.poi.hssf.usermodel.HSSFCell getCell()
セル取得

戻り値:
cell

getRow

protected org.apache.poi.hssf.usermodel.HSSFRow getRow()
列取得

戻り値:
row

setRow

protected void setRow(int rowno)
列設定

パラメータ:
rowno - row番号

getStringCellValue

protected String getStringCellValue()
セルの値取得(String型)

戻り値:

getStringCellValue

protected String getStringCellValue(short cellno)
指定セルの値取得(String型)

パラメータ:
cellno - cell番号
戻り値:

getNumberCellValue

protected double getNumberCellValue()
セルの値取得(double型)

戻り値:

getDateCellValue

protected Date getDateCellValue()
セルの値取得(Date型)

戻り値:

getCellValue

protected String getCellValue(short cellno)
指定セルの値取得(String型)

パラメータ:
cellno - cell番号
戻り値:
value