com.hamaf.hikyaku.report.excel2003
クラス ExcelDoc

java.lang.Object
  上位を拡張 com.hamaf.hikyaku.report.excel2003.ExcelDoc

public class ExcelDoc
extends java.lang.Object

タイトル: ExcelDoc is Microsoft Excel SpredsheetML Object.

説明:Excel用spredsheetML(XML Document)を管理する。


以下の機能を提供する

Created: Tue Nov 25 11:43:04 2008

バージョン:
1.0
作成者:
y-hamanaka - hamanaka

フィールドの概要
static java.lang.String STYL_DATE
           
 
コンストラクタの概要
ExcelDoc()
           
 
メソッドの概要
 java.lang.String addStyle(ExcelStyle sty)
          Describe addStyle method : スタイル属性を追加する.
 ExcelStyle getExcelStyle()
          Describe getExcelStyle method : スタイル設定クラスを生成する.
 org.w3c.dom.Document getExldoc()
          Gets the value of exlDoc
 ExcelSheet getSheet(int pos)
          Describe getSheet method : get worksheet at position.
 ExcelSheet getSheet(java.lang.String name)
          Describe getSheet method : get worksheet by name.
 org.w3c.dom.Element getStyles()
          Gets the value of style
 org.w3c.dom.Document newBook()
          Describe newBook method : create Excel Wookbook SpredsheetML.
 ExcelSheet newSheet(java.lang.String name)
          Describe newSheet method : create new worksheet.
 org.w3c.dom.Document openBook(java.lang.String flnm)
          Describe openBook method : open Excel spreadsheetMl file.
 void writeDoc(java.io.OutputStream out, java.lang.String encd)
          Describe writeDoc method : OutputStreamにドキュメントを出力する.
 void writeDoc(java.lang.String flnm, java.lang.String encd)
          Describe writeDoc method : ファイルにドキュメントを出力する.
 void writeDoc(java.io.Writer out, java.lang.String encd)
          Describe writeDoc method : Writerにドキュメントを出力する.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

STYL_DATE

public static final java.lang.String STYL_DATE
関連項目:
定数フィールド値
コンストラクタの詳細

ExcelDoc

public ExcelDoc()
メソッドの詳細

openBook

public org.w3c.dom.Document openBook(java.lang.String flnm)
                              throws java.lang.Exception
Describe openBook method : open Excel spreadsheetMl file.
既存のExcel用 SpreadSheetMLファイルを開く

パラメータ:
flnm - a String : 対象とするXMLファイル
戻り値:
a Document : 取得したXML Document
例外:
java.lang.Exception - if an error occurs

newBook

public org.w3c.dom.Document newBook()
                             throws java.lang.Exception
Describe newBook method : create Excel Wookbook SpredsheetML.
Microsoft Excel workbook を作成する。

戻り値:
a Document : Workbook XML
例外:
java.lang.Exception - if an error occurs

getSheet

public ExcelSheet getSheet(java.lang.String name)
                    throws java.lang.Exception
Describe getSheet method : get worksheet by name.
指定された名称のワークシートを取得する

パラメータ:
name - a String : ワークシート名
戻り値:
an ExcelSheet : 取得したワークシート
例外:
java.lang.Exception - if an error occurs

getSheet

public ExcelSheet getSheet(int pos)
                    throws java.lang.Exception
Describe getSheet method : get worksheet at position.
指定された位置(0番目から)のワークシートを取得する

パラメータ:
pos - an int : ワークシートの位置 ('0'番目から指定する)
戻り値:
an ExcelSheet : 取得したワークシート
例外:
Excepsion - if an error occurs
java.lang.Exception

newSheet

public ExcelSheet newSheet(java.lang.String name)
                    throws java.lang.Exception
Describe newSheet method : create new worksheet.
ワークシートを生成し、bookに追加する。

パラメータ:
name - a String : ワークシート名
戻り値:
an ExcelSheet : 生成したワークシート
例外:
java.lang.Exception - if an error occurs

writeDoc

public void writeDoc(java.lang.String flnm,
                     java.lang.String encd)
              throws java.lang.Exception
Describe writeDoc method : ファイルにドキュメントを出力する.

パラメータ:
flnm - a String : 出力ファイル名
encd - a String : 文字コード(既定値 "utf-8")
例外:
java.lang.Exception - if an error occurs

writeDoc

public void writeDoc(java.io.OutputStream out,
                     java.lang.String encd)
              throws java.lang.Exception
Describe writeDoc method : OutputStreamにドキュメントを出力する.

パラメータ:
out - an OutputStream : 出力先
encd - a String : 文字コード(既定値 "utf-8")
例外:
java.lang.Exception - if an error occurs

writeDoc

public void writeDoc(java.io.Writer out,
                     java.lang.String encd)
              throws java.lang.Exception
Describe writeDoc method : Writerにドキュメントを出力する.
文字コードに対応したWriterを指定すること。

パラメータ:
out - a Writer : 出力先
encd - a String : 文字コード(既定値 "utf-8")
例外:
java.lang.Exception - if an error occurs

getExldoc

public final org.w3c.dom.Document getExldoc()
Gets the value of exlDoc

戻り値:
the value of exlDoc

getStyles

public final org.w3c.dom.Element getStyles()
Gets the value of style

戻り値:
the value of style

getExcelStyle

public final ExcelStyle getExcelStyle()
Describe getExcelStyle method : スタイル設定クラスを生成する.

戻り値:
an ExcelStyle :

addStyle

public final java.lang.String addStyle(ExcelStyle sty)
                                throws java.lang.Exception
Describe addStyle method : スタイル属性を追加する.

パラメータ:
sty - an ExcelStyle :
戻り値:
a String : このスタイルのID
例外:
java.lang.Exception - if an error occurs