[openrtm-commit:00476] r593 - branches/work/SourceSharing/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/port
openrtm @ openrtm.org
openrtm @ openrtm.org
2011年 12月 7日 (水) 14:47:08 JST
Author: fsi-katami
Date: 2011-12-07 14:47:08 +0900 (Wed, 07 Dec 2011)
New Revision: 593
Modified:
branches/work/SourceSharing/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/port/EncapsOutputStreamExt.java
branches/work/SourceSharing/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/port/InPortCorbaCdrConsumer.java
Log:
Add comments.
Modified: branches/work/SourceSharing/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/port/EncapsOutputStreamExt.java
===================================================================
--- branches/work/SourceSharing/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/port/EncapsOutputStreamExt.java 2011-12-06 08:23:47 UTC (rev 592)
+++ branches/work/SourceSharing/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/port/EncapsOutputStreamExt.java 2011-12-07 05:47:08 UTC (rev 593)
@@ -1,10 +1,16 @@
package jp.go.aist.rtm.RTC.port;
+/**
+ * {@.ja EncapsOutputStreamの拡張クラス。}
+ * {@.en Expansion class of EncapsOutputStream}
+ */
import com.sun.corba.se.impl.encoding.EncapsOutputStream;
import com.sun.corba.se.spi.orb.ORB;
+//import org.jacorb.orb.CDROutputStream;
+//import org.omg.CORBA.ORB;
-import jp.go.aist.rtm.RTC.util.ORBUtil;
+//public class EncapsOutputStreamExt extends CDROutputStream {
public class EncapsOutputStreamExt extends EncapsOutputStream {
/**
* {@.ja コンストラクタ}
@@ -14,9 +20,16 @@
*/
public EncapsOutputStreamExt(org.omg.CORBA.ORB orb, boolean isLittleEndian) {
super((ORB)orb,isLittleEndian);
+ //super((ORB)orb);
}
+ /**
+ * {@.ja ストリームの内容を配列で取得する。}
+ * {@.en Gets the content of the stream in the array.}
+ * <p>
+ */
public final byte[] getByteArray(){
return toByteArray();
+ //return getBufferCopy();
}
}
Modified: branches/work/SourceSharing/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/port/InPortCorbaCdrConsumer.java
===================================================================
--- branches/work/SourceSharing/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/port/InPortCorbaCdrConsumer.java 2011-12-06 08:23:47 UTC (rev 592)
+++ branches/work/SourceSharing/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/port/InPortCorbaCdrConsumer.java 2011-12-07 05:47:08 UTC (rev 593)
@@ -108,7 +108,7 @@
EncapsOutputStreamExt cdr;
cdr = (EncapsOutputStreamExt)data;
- byte[] ch = cdr.toByteArray();
+ byte[] ch = cdr.getByteArray();
EncapsOutputStreamExt output_stream
= new EncapsOutputStreamExt(m_orb, m_connector.isLittleEndian());
output_stream.write_octet_array(ch,0,ch.length);
openrtm-commit メーリングリストの案内