org.omg.CORBA.portable.InputStream.read_fixed()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(99)

本文整理了Java中org.omg.CORBA.portable.InputStream.read_fixed()方法的一些代码示例,展示了InputStream.read_fixed()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。InputStream.read_fixed()方法的具体详情如下:
包路径:org.omg.CORBA.portable.InputStream
类名称:InputStream
方法名:read_fixed

InputStream.read_fixed介绍

暂无

代码示例

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

/**
 * Read a fixed point value from the input stream and store it in
 * the value member.
 *
 * @param input the <code>InputStream</code> to read from.
 */
public void _read(InputStream input) {
  value = input.read_fixed();
}

代码示例来源:origin: org.jppf/jppf-jmxremote_optional

@Override
public BigDecimal read_fixed() {
 return in.read_fixed();
}

代码示例来源:origin: org.apache.yoko/yoko-spec-corba

public void _read(org.omg.CORBA.portable.InputStream input) {
  value = input.read_fixed();
}

代码示例来源:origin: apache/cxf

public void readFixed(CorbaFixedHandler fixedHandler) throws CorbaBindingException {
  long scale = fixedHandler.getScale();
  try {
    java.math.BigDecimal fixedValue = stream.read_fixed().movePointLeft((int)scale);
    fixedHandler.setValue(fixedValue);
  } catch (NO_IMPLEMENT ex) {
    //the read_fixed method is a "late addition" and not all orbs implement it.
    //Some of them have a "read_fixed(TypeCode)" method, we'll try that
    Method m = null;
    try {
      m = stream.getClass().getMethod("read_fixed", new Class[] {TypeCode.class});
      BigDecimal fixedValue =
        (BigDecimal)m.invoke(stream, new Object[] {fixedHandler.getTypeCode()});
      fixedHandler.setValue(fixedValue);
    } catch (Throwable e1) {
      throw ex;
    }
  }
}

代码示例来源:origin: org.apache.yoko/yoko-core

value_ = in.read_fixed().movePointLeft(origType_.fixed_scale());
} catch (org.omg.CORBA.TypeCodePackage.BadKind ex) {
  org.apache.yoko.orb.OB.Assert._OB_assert(ex);

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

return (myStream.read_long() == otherStream.read_long());
case TCKind._tk_fixed:
  return (myStream.read_fixed().compareTo(otherStream.read_fixed()) == 0);
case TCKind._tk_except:
case TCKind._tk_struct: {

代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec

BigDecimal bigDecimal = s.read_fixed();
o = bigDecimal.movePointLeft(typeCode.fixed_scale());

代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec

return (myStream.read_long() == otherStream.read_long());
case TCKind._tk_fixed :
  return (myStream.read_fixed().compareTo(otherStream.read_fixed()) == 0);
case TCKind._tk_except :
case TCKind._tk_struct : {

代码示例来源:origin: jboss/jboss-javaee-specs

return (myStream.read_long() == otherStream.read_long());
case TCKind._tk_fixed :
  return (myStream.read_fixed().compareTo(otherStream.read_fixed()) == 0);
case TCKind._tk_except :
case TCKind._tk_struct : {

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

typeCode.fixed_scale());
} else {
  BigDecimal bigDecimal = s.read_fixed();
  o = bigDecimal.movePointLeft((int)typeCode.fixed_scale());

代码示例来源:origin: jboss/jboss-javaee-specs

BigDecimal bigDecimal = s.read_fixed();
o = bigDecimal.movePointLeft(typeCode.fixed_scale());

代码示例来源:origin: org.apache.yoko/yoko-core

write_fixed(in.read_fixed());
break;

代码示例来源:origin: org.jacorb/jacorb

value = input.read_fixed();

相关文章