本文整理了Java中org.omg.CORBA.portable.OutputStream.write_fixed()
方法的一些代码示例,展示了OutputStream.write_fixed()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OutputStream.write_fixed()
方法的具体详情如下:
包路径:org.omg.CORBA.portable.OutputStream
类名称:OutputStream
方法名:write_fixed
暂无
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
/**
* Write the fixed point value stored in this holder to an
* <code>OutputStream</code>.
*
* @param output the <code>OutputStream</code> to write into.
*/
public void _write(OutputStream output) {
output.write_fixed(value);
}
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
public void _write(org.omg.CORBA.portable.OutputStream output) {
output.write_fixed(value);
}
代码示例来源:origin: apache/cxf
public void writeFixed(CorbaFixedHandler fixedHandler) throws CorbaBindingException {
short scale = (short)fixedHandler.getScale();
short fixed = (short)fixedHandler.getDigits();
//the write_fixed method is a "late addition" and not all orbs implement it.
//Some of them have a "write_fixed(BigDecimal, short, short)" method, we'll try that
try {
Method m = stream.getClass().getMethod("write_fixed", new Class[] {BigDecimal.class,
Short.TYPE,
Short.TYPE});
m.invoke(stream, fixedHandler.getValue(), fixed, scale);
} catch (Throwable e1) {
stream.write_fixed(fixedHandler.getValue().movePointRight(scale));
}
}
代码示例来源:origin: org.jacorb/jacorb-omgapi
public void _write(org.omg.CORBA.portable.OutputStream out)
{
if (value == null)
{
throw new MARSHAL("value may not be null");
}
TypeCode typeCode = _type();
try
{
out.write_fixed(value, typeCode.fixed_digits(), typeCode.fixed_scale());
}
catch (BadKind e)
{
throw new RuntimeException("should never happen", e);
}
}
}
代码示例来源:origin: JacORB/JacORB
public void _write(org.omg.CORBA.portable.OutputStream out)
{
if (value == null)
{
throw new MARSHAL("value may not be null");
}
TypeCode typeCode = _type();
try
{
out.write_fixed(value, typeCode.fixed_digits(), typeCode.fixed_scale());
}
catch (BadKind e)
{
throw new RuntimeException("should never happen", e);
}
}
}
代码示例来源:origin: org.apache.yoko/yoko-core
out.write_fixed(((java.math.BigDecimal) value_)
.movePointRight(origType_.fixed_scale()));
} catch (org.omg.CORBA.TypeCodePackage.BadKind ex) {
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
s.write_fixed((BigDecimal) o);
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
s.write_fixed((BigDecimal)o);
代码示例来源:origin: jboss/jboss-javaee-specs
s.write_fixed((BigDecimal) o);
代码示例来源:origin: org.jacorb/jacorb
output.write_fixed(extract_fixed());
代码示例来源:origin: org.jacorb/jacorb
out.write_fixed (value);
内容来源于网络,如有侵权,请联系作者删除!