public class PFBinaryFileWriter extends PFWriter implements PFXMLSerializable
このコンポーネントからはイベントが発生しない。
コンストラクタと説明 |
---|
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出力.
|
getComponentID, getComponentKey, getComponentKeys, getComponentPublicName, getComponentString, getCurrentFile, getExceptionIgnoring, getFile, isAllowPullTransfer, isAllowPushTransfer, isAllowRemoteInvocation, setAllowPullTransfer, setAllowPushTransfer, setAllowRemoteInvocation, setComponentID, setComponentKey, setComponentKeys, setComponentPublicName, setExceptionIgnoring, setFile, setFile
public java.lang.String getComponentName()
getComponentName
インタフェース内 PFComponent
PFComponent.getComponentName()
public void localeUpdated()
localeUpdated
インタフェース内 PFComponent
localeUpdated
クラス内 PFWriter
PFComponent.localeUpdated()
public void readXML(PFXMLLoader in)
readXML
インタフェース内 PFXMLSerializable
in
- XML入力ユーティリティpublic void writeXML(PFXMLGenerator out) throws java.io.IOException
writeXML
インタフェース内 PFXMLSerializable
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
- 書き込み失敗