|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object jp.go.aist.dmrc.platform.beans.io.PFWriter jp.go.aist.dmrc.platform.beans.io.PFTextFileWriter
文字列をテキストファイルに出力するコンポーネント。
このコンポーネントからはイベントが発生しない。
コンストラクタの概要 | |
PFTextFileWriter()
デフォルトコンストラクタ |
メソッドの概要 | |
void |
close()
ファイルを閉じる |
java.lang.String |
getComponentName()
コンポーネント名称を取得する。 |
boolean |
isOpen()
ファイルを開いているか判定する |
void |
localeUpdated()
ロケール変更に対応する。 |
void |
open(java.io.File file)
ファイルを指定して開く |
void |
open(java.lang.String filename)
ファイル名を指定してファイルを開く |
void |
print(java.lang.String text)
開いているファイルに文字列を書き出す(改行なし)。 |
void |
println(java.lang.String text)
開いているファイルに文字列を書き出す(改行あり)。 |
void |
readXML(PFXMLLoader in)
コンポーネントのXML入力. |
void |
write(java.io.File file,
java.lang.String text)
ファイルオブジェクトを指定して文字列を書き出す。 |
void |
write(java.lang.String filename,
java.lang.String text)
ファイル名を指定して文字列を書き出す。 |
void |
writeXML(PFXMLGenerator out)
コンポーネントのXML出力. |
クラス jp.go.aist.dmrc.platform.beans.io.PFWriter から継承したメソッド |
getComponentID, getComponentKey, getComponentKeys, getComponentPublicName, getComponentString, getCurrentFile, getExceptionIgnoring, getFile, isAllowPullTransfer, isAllowPushTransfer, isAllowRemoteInvocation, setAllowPullTransfer, setAllowPushTransfer, setAllowRemoteInvocation, setComponentID, setComponentKey, setComponentKeys, setComponentPublicName, setExceptionIgnoring, setFile, setFile |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
public PFTextFileWriter()
メソッドの詳細 |
public java.lang.String getComponentName()
PFComponent
内の getComponentName
PFComponent.getComponentName()
public void localeUpdated()
PFComponent
内の localeUpdated
PFWriter
内の localeUpdated
PFComponent.localeUpdated()
public void write(java.lang.String filename, java.lang.String text) throws PFComponentException
filename
- ファイル名text
- 書き出す文字列
PFComponentException
- 文字列書き出しの失敗public void write(java.io.File file, java.lang.String text) throws PFComponentException
file
- ファイルオブジェクトtext
- 書き出す文字列
PFComponentException
- 文字列書き出しの失敗public void open(java.lang.String filename) throws PFComponentException
filename
- ファイル名
PFComponentException
- すでにファイルを開いているかファイルを開けない場合public void open(java.io.File file) throws PFComponentException
file
- ファイル
PFComponentException
- すでにファイルを開いているかファイルを開けない場合public void close()
public void print(java.lang.String text) throws PFComponentException
text
- 書き出す文字列
PFComponentException
- ファイルをオープンしていない場合public void println(java.lang.String text) throws PFComponentException
text
- 書き出す文字列
PFComponentException
- ファイルをオープンしていない場合public boolean isOpen()
public void readXML(PFXMLLoader in)
PFXMLSerializable
内の readXML
in
- XML入力ユーティリティpublic void writeXML(PFXMLGenerator out) throws java.io.IOException
PFXMLSerializable
内の writeXML
out
- XML出力ユーティリティ
java.io.IOException
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |