64 |
import org.omg.CORBA.portable.OutputStream; |
import org.omg.CORBA.portable.OutputStream; |
65 |
import org.omg.CORBA.portable.Streamable; |
import org.omg.CORBA.portable.Streamable; |
66 |
|
|
|
import java.io.DataOutputStream; |
|
67 |
import java.io.IOException; |
import java.io.IOException; |
68 |
import java.io.OutputStreamWriter; |
import java.io.OutputStreamWriter; |
69 |
|
import java.io.Serializable; |
70 |
|
|
71 |
import java.math.BigDecimal; |
import java.math.BigDecimal; |
72 |
|
|
75 |
* output stream, writing data into the |
* output stream, writing data into the |
76 |
* given {@link java.io.OutputStream}. |
* given {@link java.io.OutputStream}. |
77 |
* |
* |
78 |
* @author Audrius Meskauskas (AudriusA@Bioinformatics.org) |
* The same class also implements the {@link DataInputStream}, |
79 |
|
* providing support for writing the value type objects |
80 |
|
* in a user defined way. |
81 |
* |
* |
82 |
* TODO the standalone chars and char arrays are still written using |
* @author Audrius Meskauskas (AudriusA@Bioinformatics.org) |
|
* the native encoding, as the size under arbitrary encoding is not |
|
|
* evident. |
|
83 |
*/ |
*/ |
84 |
public abstract class cdrOutput |
public abstract class cdrOutput |
85 |
extends org.omg.CORBA.portable.OutputStream |
extends org.omg.CORBA_2_3.portable.OutputStream |
86 |
|
implements org.omg.CORBA.DataOutputStream |
87 |
{ |
{ |
88 |
/** |
/** |
89 |
* This instance is used to convert primitive data types into the |
* This instance is used to convert primitive data types into the |
969 |
Unexpected.error(ex); |
Unexpected.error(ex); |
970 |
} |
} |
971 |
} |
} |
972 |
|
|
973 |
|
/** {@inheritDoc} */ |
974 |
|
public void write_any_array(Any[] anys, int offset, int length) |
975 |
|
{ |
976 |
|
for (int i = offset; i < offset + length; i++) |
977 |
|
{ |
978 |
|
write_any(anys [ i ]); |
979 |
|
} |
980 |
|
} |
981 |
|
|
982 |
|
public String[] _truncatable_ids() |
983 |
|
{ |
984 |
|
/**@todo Implement this org.omg.CORBA.portable.ValueBase abstract method*/ |
985 |
|
throw new java.lang.UnsupportedOperationException("Method _truncatable_ids() not yet implemented."); |
986 |
|
} |
987 |
|
|
988 |
|
/** {@inheritDoc} */ |
989 |
|
public void write_Abstract(java.lang.Object value) |
990 |
|
{ |
991 |
|
write_Abstract(value); |
992 |
|
} |
993 |
|
|
994 |
|
/** {@inheritDoc} */ |
995 |
|
public void write_Value(Serializable value) |
996 |
|
{ |
997 |
|
write_Value(value); |
998 |
|
} |
999 |
} |
} |