org.omg.CORBA_2_3.portable.OutputStream类的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(4.9k)|赞(0)|评价(0)|浏览(150)

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

OutputStream介绍

暂无

代码示例

代码示例来源:origin: wildfly/wildfly

public void write(OutputStream out, Object obj) {
    out.write_value((String) obj, String.class);
  }
}

代码示例来源:origin: wildfly/wildfly

public void write(OutputStream out, Object obj) {
    out.write_long(((Integer) obj).intValue());
  }
}

代码示例来源:origin: wildfly/wildfly

public void write(OutputStream out, Object obj) {
    out.write_abstract_interface(obj);
  }
}

代码示例来源:origin: wildfly/wildfly

/**
 * Writes an exception to a CDR output stream.
 */
public void write(OutputStream out, Object excep) {
  if (writeMethod != null) {
    try {
      writeMethod.invoke(null, new Object[]{out, excep});
    } catch (IllegalAccessException e) {
      throw IIOPLogger.ROOT_LOGGER.unexpectedException(e);
    } catch (java.lang.reflect.InvocationTargetException e) {
      throw IIOPLogger.ROOT_LOGGER.errorMarshaling(IDLEntity.class, e.getTargetException());
    }
  } else {
    out.write_string(reposId);
    out.write_value((Exception) excep, clz);
  }
}

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

case 'B':
  byte byteValue = bridge.getByte(o, fields[i].getFieldID()) ;
  orbStream.write_octet(byteValue);
  break;
case 'C':
  char charValue = bridge.getChar(o, fields[i].getFieldID()) ;
  orbStream.write_wchar(charValue);
  break;
case 'F':
  float floatValue = bridge.getFloat(o, fields[i].getFieldID()) ;
  orbStream.write_float(floatValue);
  break;
case 'D' :
  double doubleValue = bridge.getDouble(o, fields[i].getFieldID()) ;
  orbStream.write_double(doubleValue);
  break;
case 'I':
  int intValue = bridge.getInt(o, fields[i].getFieldID()) ;
  orbStream.write_long(intValue);
  break;
case 'J':
  long longValue = bridge.getLong(o, fields[i].getFieldID()) ;
  orbStream.write_longlong(longValue);
  break;
case 'S':
  short shortValue = bridge.getShort(o, fields[i].getFieldID()) ;
  orbStream.write_short(shortValue);
  break;
case 'Z':

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

public void exitWriteObject(OutputStreamHook stream) throws IOException {
  // We didn't write any data, so write the
  // called defaultWriteObject indicator as false
  stream.getOrbStream().write_boolean(false);
  // If we're in stream format verison 2, we must
  // put the "null" marker to say that there isn't
  // any optional data
  if (stream.getStreamFormatVersion() == 2)
    stream.getOrbStream().write_long(0);
  stream.setState(NOT_IN_WRITE_OBJECT);
}

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

public void write( OutputStream os )
  {
    os.write_long( getNumLevels() ) ;
    Iterator iter = iterator() ;
    while (iter.hasNext()) {
      String str = (String)(iter.next()) ;
      os.write_string( str ) ;
    }
  }
}

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

public void write( OutputStream os )
{
  os.write_string( getHost() ) ;
  int port = getPort() ;
  os.write_short( intToShort( port ) ) ;
}

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

((org.omg.CORBA_2_3.portable.OutputStream)s).write_value((Serializable)o);
break;
((org.omg.CORBA_2_3.portable.OutputStream)s).write_abstract_interface(o);
break;

代码示例来源:origin: wildfly/wildfly

public void write(OutputStream out, Object obj) {
    out.write_longlong(((Long) obj).longValue());
  }
}

代码示例来源:origin: wildfly/wildfly

public void write(OutputStream out, Object obj) {
    out.write_float(((Float) obj).floatValue());
  }
}

代码示例来源:origin: wildfly/wildfly

public void write(OutputStream out, Object obj) {
    out.write_double(((Double) obj).doubleValue());
  }
}

代码示例来源:origin: wildfly/wildfly

public void write(OutputStream out, Object obj) {
    out.write_octet(((Byte) obj).byteValue());
  }
}

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

public void write(OutputStream os, GIOPVersion gv) throws SystemException
{
  os.write_long(id);
  os.write_long(data.length);
  os.write_octet_array(data, 0, data.length);
}

代码示例来源:origin: wildfly/wildfly

public void write(OutputStream out, Object obj) {
    out.write_short(((Short) obj).shortValue());
  }
}

代码示例来源:origin: wildfly/wildfly

public void write(OutputStream out, Object obj) {
    out.write_boolean(((Boolean) obj).booleanValue());
  }
}

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

public void write(OutputStream os)
{
  os.write_string( typeId ) ;
  EncapsulationUtility.writeIdentifiableSequence( this, os ) ;
}

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

public void write(OutputStream os, Exception ex)
{
  os.write_string(getId());
  os.write_value(ex, getExceptionClass());
}

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

public void exitWriteObject(OutputStreamHook stream) throws IOException {
  // We didn't write any data, so write the
  // called defaultWriteObject indicator as false
  stream.getOrbStream().write_boolean(false);
  // If we're in stream format verison 2, we must
  // put the "null" marker to say that there isn't
  // any optional data
  if (stream.getStreamFormatVersion() == 2)
    stream.getOrbStream().write_long(0);
  stream.setState(NOT_IN_WRITE_OBJECT);
}

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

public void write(OutputStream os)
  {
    os.write_long(getNumLevels());
    Iterator<String> iter = iterator();
    while (iter.hasNext())
    {
      String str = iter.next();
      os.write_string(str);
    }
  }
}

相关文章