org.omg.CORBA_2_3.portable.OutputStream.write_value()方法的使用及代码示例

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

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

OutputStream.write_value介绍

暂无

代码示例

代码示例来源: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_value((java.io.Serializable) obj, clz);
  }
}

代码示例来源: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.spec.javax.rmi/jboss-rmi-api_1.0_spec

public void write(OutputStream os, Object value)
  {
    os.write_value((Serializable) value, cls);
  }
};

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

/**
 * Marshals to <code>output</code> the value in the Holder.
 *
 * @param output the OutputStream which will contain the CDR formatted data
 */
public void _write(OutputStream output) {
  ((org.omg.CORBA_2_3.portable.OutputStream)output).write_value(value);
}

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

public static void write (org.omg.CORBA.portable.OutputStream os, org.omg.Messaging.ExceptionHolder val)
  {
    ((org.omg.CORBA_2_3.portable.OutputStream)os).write_value (val, "IDL:omg.org/Messaging/ExceptionHolder:1.0");
  }
}

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

/**
 * Operation write_value
 */
public void write_Value( java.io.Serializable value )
{
  ( ( org.omg.CORBA_2_3.portable.OutputStream ) delegate ).write_value( value );
}

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

public static void write (org.omg.CORBA.portable.OutputStream out, java.io.Serializable value)
  {
   ((org.omg.CORBA_2_3.portable.OutputStream)out).write_value (value);
  }
}

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public static void write(org.omg.CORBA.portable.OutputStream ostream, byte[] value) {
  if (!(ostream instanceof org.omg.CORBA_2_3.portable.OutputStream)) {
    throw new org.omg.CORBA.BAD_PARAM();
  }
  ((org.omg.CORBA_2_3.portable.OutputStream)ostream).write_value(value, _instance);
}

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

public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.PortableInterceptor.ObjectReferenceFactory value)
{
 ((org.omg.CORBA_2_3.portable.OutputStream) ostream).write_value (value, id ());
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

public static void write(org.omg.CORBA.portable.OutputStream ostream, byte[] value) {
  if (!(ostream instanceof org.omg.CORBA_2_3.portable.OutputStream)) {
    throw new org.omg.CORBA.BAD_PARAM();
  }
  ((org.omg.CORBA_2_3.portable.OutputStream)ostream).write_value(value, _instance);
}

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

public static void
write(org.omg.CORBA.portable.OutputStream out, String val)
{
  if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream))
    throw new org.omg.CORBA.BAD_PARAM();
  ((org.omg.CORBA_2_3.portable.OutputStream)out).write_value((java.io.Serializable)val, _instance);
}

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

public void writeValueObject(Object obj) throws IOException {
  beforeWriteData();
  try {
    out.write_value((java.io.Serializable) obj);
  } catch (Error err) {
    logger.log(Level.FINE, "exception in writeValueObject", err);
    throw err;
  }
}

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

public static void
  write(org.omg.CORBA.portable.OutputStream out, DataOutputStream val)
  {
    if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream))
      throw new org.omg.CORBA.BAD_PARAM();
    ((org.omg.CORBA_2_3.portable.OutputStream)out).write_value(val, id());
  }
}

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

public static void
  write(org.omg.CORBA.portable.OutputStream out, ObjectReferenceTemplate val)
  {
    if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream))
      throw new org.omg.CORBA.BAD_PARAM();
    ((org.omg.CORBA_2_3.portable.OutputStream)out).write_value(val, id());
  }
}

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

public static void
  write(org.omg.CORBA.portable.OutputStream out, UnlimitedPing val)
  {
    if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream))
      throw new org.omg.CORBA.BAD_PARAM();
    ((org.omg.CORBA_2_3.portable.OutputStream)out).write_value(val, id());
  }
}

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

public static void
  write(org.omg.CORBA.portable.OutputStream out, _ExceptionHolder val)
  {
    if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream))
      throw new org.omg.CORBA.BAD_PARAM();
    ((org.omg.CORBA_2_3.portable.OutputStream)out).write_value(val, id());
  }
}

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

public static void
  write(org.omg.CORBA.portable.OutputStream out, Poller val)
  {
    if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream))
      throw new org.omg.CORBA.BAD_PARAM();
    ((org.omg.CORBA_2_3.portable.OutputStream)out).write_value(val, id());
  }
}

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

public static void
  write(org.omg.CORBA.portable.OutputStream out, PersistentORT val)
  {
    if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream)) {
      throw new org.omg.CORBA.BAD_PARAM(org.apache.yoko.orb.OB.MinorCodes
        .describeBadParam(org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType), 
        org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType, 
        org.omg.CORBA.CompletionStatus.COMPLETED_NO);
    }
    ((org.omg.CORBA_2_3.portable.OutputStream)out).write_value(val, id());
  }
}

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

public static void
  write(org.omg.CORBA.portable.OutputStream out, IMRORT val)
  {
    if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream)) {
      throw new org.omg.CORBA.BAD_PARAM(org.apache.yoko.orb.OB.MinorCodes
        .describeBadParam(org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType), 
        org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType, 
        org.omg.CORBA.CompletionStatus.COMPLETED_NO);
    }
    ((org.omg.CORBA_2_3.portable.OutputStream)out).write_value(val, id());
  }
}

相关文章