|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object jp.go.aist.dmrc.platform.beans.io.PFWriter jp.go.aist.dmrc.platform.beans.io.PFBinaryFileWriter
public class PFBinaryFileWriter
バイナリデータをファイルに書き出すコンポーネント。
このコンポーネントからはイベントが発生しない。
コンストラクタの概要 | |
---|---|
PFBinaryFileWriter()
デフォルトコンストラクタ |
メソッドの概要 | |
---|---|
void |
close()
ファイルを閉じる |
java.lang.String |
getComponentName()
コンポーネント名称を取得する。 |
boolean |
isLittleEndian()
下位ビットが先にバイト列に書きこまれる(リトルエンディアン)かどうかを取得する。 |
boolean |
isOpen()
ファイルを開いているか判定する |
void |
localeUpdated()
ロケール変更に対応する。 |
void |
open(java.io.File file)
ファイルオブジェクトを指定してファイルを開く |
void |
open(java.lang.String filename)
ファイル名を指定してファイルを開く |
void |
readXML(PFXMLLoader in)
コンポーネントのXML入力. |
void |
setLittleEndian(boolean flag)
下位ビットが先にバイト列に書きこまれる(リトルエンディアン)かどうかを設定する。 |
void |
writeBoolean(boolean value)
booleanの値を1バイトデータとして書き込む。 |
void |
writeByte(byte value)
byteの値を1バイトデータとして書き込む。 |
void |
writeChar(char value)
charの値を2バイトデータとして書き込む。 |
void |
writeDouble(double value)
doubleの値を8バイトデータとして書き込む。 |
void |
writeFloat(float value)
floatの値を4バイトデータとして書き込む。 |
void |
writeInt(int value)
intの値を4バイトデータとして書き込む。 |
void |
writeLong(long value)
longの値を8バイトデータとして書き込む。 |
void |
writeShort(short value)
shortの値を2バイトデータとして書き込む。 |
void |
writeString(java.lang.String text)
文字列の各文字を2バイトデータとして書き込む。 |
void |
writeString(java.lang.String text,
int length)
書き込む数を指定して文字列の各文字を2バイトデータとして書き込む。 |
void |
writeStringAsSingleByteChar(java.lang.String text)
文字列の各文字を1バイトデータとして書き込む。 |
void |
writeStringAsSingleByteChar(java.lang.String text,
int length)
書き込む数を指定して文字列の各文字を1バイトデータとして書き込む。 |
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 PFBinaryFileWriter()
メソッドの詳細 |
---|
public java.lang.String getComponentName()
PFComponent
内の getComponentName
PFComponent.getComponentName()
public void localeUpdated()
PFComponent
内の localeUpdated
PFWriter
内の localeUpdated
PFComponent.localeUpdated()
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
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() throws PFComponentException
PFComponentException
- ファイルクローズの失敗public boolean isOpen()
public boolean isLittleEndian()
public void setLittleEndian(boolean flag)
flag
- 下位ビットが先かどうかのフラグpublic void writeBoolean(boolean value) throws PFComponentException
value
- booleanの値
PFComponentException
- 書き込み失敗public void writeByte(byte value) throws PFComponentException
value
- byteの値
PFComponentException
- 書き込み失敗public void writeShort(short value) throws PFComponentException
value
- shortの値
PFComponentException
- 書き込み失敗public void writeInt(int value) throws PFComponentException
value
- intの値
PFComponentException
- 書き込み失敗public void writeLong(long value) throws PFComponentException
value
- longの値
PFComponentException
- 書き込み失敗public void writeChar(char value) throws PFComponentException
value
- charの値
PFComponentException
- 書き込み失敗public void writeFloat(float value) throws PFComponentException
value
- floatの値
PFComponentException
- 書き込み失敗public void writeDouble(double value) throws PFComponentException
value
- doubleの値
PFComponentException
- 書き込み失敗public void writeString(java.lang.String text) throws PFComponentException
text
- 文字列
PFComponentException
- 書き込み失敗public void writeString(java.lang.String text, int length) throws PFComponentException
text
- 文字列length
- 書き込むバイト数
PFComponentException
- 書き込み失敗public void writeStringAsSingleByteChar(java.lang.String text) throws PFComponentException
text
- 文字列
PFComponentException
- 書き込み失敗public void writeStringAsSingleByteChar(java.lang.String text, int length) throws PFComponentException
text
- 文字列length
- 書き込むバイト数
PFComponentException
- 書き込み失敗
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |