|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.hamaf.hikyaku.report.excel2003.ExcelDoc
public class ExcelDoc
タイトル: ExcelDoc is Microsoft Excel SpredsheetML Object.
説明:Excel用spredsheetML(XML Document)を管理する。
Created: Tue Nov 25 11:43:04 2008
フィールドの概要 | |
---|---|
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 |
フィールドの詳細 |
---|
public static final java.lang.String STYL_DATE
コンストラクタの詳細 |
---|
public ExcelDoc()
メソッドの詳細 |
---|
public org.w3c.dom.Document openBook(java.lang.String flnm) throws java.lang.Exception
openBook
method : open Excel spreadsheetMl file.
flnm
- a String
: 対象とするXMLファイル
Document
: 取得したXML Document
java.lang.Exception
- if an error occurspublic org.w3c.dom.Document newBook() throws java.lang.Exception
newBook
method : create Excel Wookbook SpredsheetML.
Document
: Workbook XML
java.lang.Exception
- if an error occurspublic ExcelSheet getSheet(java.lang.String name) throws java.lang.Exception
getSheet
method : get worksheet by name.
name
- a String
: ワークシート名
ExcelSheet
: 取得したワークシート
java.lang.Exception
- if an error occurspublic ExcelSheet getSheet(int pos) throws java.lang.Exception
getSheet
method : get worksheet at position.
pos
- an int
: ワークシートの位置 ('0'番目から指定する)
ExcelSheet
: 取得したワークシート
Excepsion
- if an error occurs
java.lang.Exception
public ExcelSheet newSheet(java.lang.String name) throws java.lang.Exception
newSheet
method : create new worksheet.
name
- a String
: ワークシート名
ExcelSheet
: 生成したワークシート
java.lang.Exception
- if an error occurspublic void writeDoc(java.lang.String flnm, java.lang.String encd) throws java.lang.Exception
writeDoc
method : ファイルにドキュメントを出力する.
flnm
- a String
: 出力ファイル名encd
- a String
: 文字コード(既定値 "utf-8")
java.lang.Exception
- if an error occurspublic void writeDoc(java.io.OutputStream out, java.lang.String encd) throws java.lang.Exception
writeDoc
method : OutputStreamにドキュメントを出力する.
out
- an OutputStream
: 出力先encd
- a String
: 文字コード(既定値 "utf-8")
java.lang.Exception
- if an error occurspublic void writeDoc(java.io.Writer out, java.lang.String encd) throws java.lang.Exception
writeDoc
method : Writerにドキュメントを出力する.
Writer
を指定すること。
out
- a Writer
: 出力先encd
- a String
: 文字コード(既定値 "utf-8")
java.lang.Exception
- if an error occurspublic final org.w3c.dom.Document getExldoc()
public final org.w3c.dom.Element getStyles()
public final ExcelStyle getExcelStyle()
getExcelStyle
method : スタイル設定クラスを生成する.
ExcelStyle
:public final java.lang.String addStyle(ExcelStyle sty) throws java.lang.Exception
addStyle
method : スタイル属性を追加する.
sty
- an ExcelStyle
:
String
: このスタイルのID
java.lang.Exception
- if an error occurs
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |