10.4.3 Codecのメソッド
-
org.omg.CORBA.Any data)
throws
InvalidTypeForEncoding
このメソッドは,このCodecに適用されているエンコーディング形式に基づいて,CORBA.Anyの形式で指定したデータをオクテットシーケンスに変換します。このオクテットシーケンスには,TypeCodeと型のデータの両方が格納されます。このオペレーションでは,InvalidTypeForEncoding例外が発生する場合があります。
-
data
オクテットシーケンスに変換する,CORBA.Any形式のデータ
-
-
public org.omg.CORBA.Any decode(
byte[ ] data)
throws
FormatMismatch, TypeMismatch;
このメソッドは,このCodecに適用されているエンコーディング形式に基づいて,指定したオクテットシーケンスをCORBA.Anyオブジェクトにデコードします。
オクテットシーケンスをCORBA.Anyにデコードできない場合,このメソッドはFormatMismatch例外を出力します。
-
data
CORBA.Anyに変換する,オクテットシーケンス形式のデータ
-
-
org.omg.CORBA.Any data)
throws
InvalidTypeForEncoding;
このメソッドは,このCodecに適用されているエンコーディング形式に基づいて,指定したCORBA.Anyオブジェクトをオクテットシーケンスに変換します。CORBA.Anyのデータだけをエンコードします。TypeCodeのデータはエンコードしません。
-
data
エンコード済みCORBA.Anyのデータを格納するオクテットシーケンス
-
-
public org.omg.CORBA.Any decode_value(
byte[ ] data, org.omg.CORBA.TypeCode tc);
このメソッドは,指定したTypeCodeと,このCodecに適用されているエンコーディング形式に基づいて,指定したオクテットシーケンスをCORBA.Anyにデコードします。
オクテットシーケンスをCORBA.Anyにデコードできない場合,このメソッドはFormatMismatch例外を出力します。
-
data
CORBA.Anyにデコードする,オクテットシーケンス形式のデータ
-
tc
データのデコードに使用するTypeCode
-