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

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

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

OutputStream.write_wstring介绍

暂无

代码示例

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

public void writeWString(String s) throws CorbaBindingException {
  if (s == null) {
    stream.write_wstring("");
  } else {
    stream.write_wstring(s);
  }
}

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

public static void write (final org.omg.CORBA.portable.OutputStream out, final java.lang.String s)
  {
    java.lang.String tmpResult982 = s;
out.write_wstring( tmpResult982 );
  }
  public java.io.Serializable read_value (final org.omg.CORBA.portable.InputStream is)

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

/**
 * Helper method for correcting the Kestrel bug 4367783 (dealing
 * with larger than 8-bit chars).  The old behavior is preserved
 * in orbutil.IIOPInputStream_1_3 in order to interoperate with
 * our legacy ORBs.
 */
protected void internalWriteUTF(org.omg.CORBA.portable.OutputStream stream,
                String data)
{
  stream.write_wstring(data);
}

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

/**
 * Helper method for correcting the Kestrel bug 4367783 (dealing with larger than 8-bit chars). The old behavior is
 * preserved in orbutil.IIOPInputStream_1_3 in order to interoperate with our legacy ORBs.
 */
protected void internalWriteUTF(org.omg.CORBA.portable.OutputStream stream, String data)
{
  stream.write_wstring(data);
}

代码示例来源:origin: org.mobicents.resources/parlay-provider-api

public static void write (final org.omg.CORBA.portable.OutputStream _out, java.lang.String _s)
  {
    _out.write_wstring(_s);
  }
}

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

/**
 * Helper method for correcting the Kestrel bug 4367783 (dealing with larger than 8-bit chars). The old behavior is
 * preserved in orbutil.IIOPInputStream_1_3 in order to interoperate with our legacy ORBs.
 */
protected void internalWriteUTF(org.omg.CORBA.portable.OutputStream stream, String data)
{
  stream.write_wstring(data);
}

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

/**
 * Operation write_wstring
 */
public void write_wstring( java.lang.String value )
{
  delegate.write_wstring( value );
}

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

/**
 * Helper method for correcting the Kestrel bug 4367783 (dealing
 * with larger than 8-bit chars).  The old behavior is preserved
 * in orbutil.IIOPInputStream_1_3 in order to interoperate with
 * our legacy ORBs.
 */
protected void internalWriteUTF(org.omg.CORBA.portable.OutputStream stream,
                String data)
{
  stream.write_wstring(data);
}

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

public static void write (final org.omg.CORBA.portable.OutputStream out, final java.lang.String s)
  {
    java.lang.String tmpResult982 = s;
out.write_wstring( tmpResult982 );
  }
  public java.io.Serializable read_value (final org.omg.CORBA.portable.InputStream is)

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

public void
write_value(org.omg.CORBA.portable.OutputStream out, java.io.Serializable val)
{
  if(!(val instanceof String))
    throw new org.omg.CORBA.MARSHAL();
  String _ob_value = (String)val;
  out.write_wstring(_ob_value);
}

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

public void write_value (org.omg.CORBA.portable.OutputStream ostream, java.io.Serializable value)
{
if (!(value instanceof String)) {
 throw new org.omg.CORBA.MARSHAL(); }
String valueType = (String) value;
ostream.write_wstring (valueType);
}

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

public static void
  write(org.omg.CORBA.portable.OutputStream out, String[] val)
  {
    int len0 = val.length;
    out.write_ulong(len0);
    for(int i0 = 0; i0 < len0; i0++)
      out.write_wstring(val[i0]);
  }
}

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

public static void write (final org.omg.CORBA.portable.OutputStream _out, java.lang.String[] _s)
  {
    
    _out.write_long(_s.length);
    for (int i=0; i<_s.length;i++)
    {
      java.lang.String tmpResult977 = _s[i];
_out.write_wstring( tmpResult977 );
    }

  }
}

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

public static void write (final org.omg.CORBA.portable.OutputStream _out, java.lang.String[] _s)
  {
    
    _out.write_long(_s.length);
    for (int i=0; i<_s.length;i++)
    {
      java.lang.String tmpResult977 = _s[i];
_out.write_wstring( tmpResult977 );
    }

  }
}

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

/**
    * Inserts a string value into the DynAny.
    * Both bounded and unbounded strings are inserted using this method.
    *
    * @exception InvalidValue if this DynAny has components but has a current position of -1
    * @exception InvalidValue if the string inserted is longer than the bound of a bounded string
    */
public void insert_wstring (String value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
{
     org.omg.CORBA.portable.InputStream $in = null;
     try {
       org.omg.CORBA.portable.OutputStream $out = _request ("insert_wstring", true);
       $out.write_wstring (value);
       $in = _invoke ($out);
       return;
     } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       if (_id.equals ("IDL:omg.org/DynamicAny/DynAny/TypeMismatch:1.0"))
         throw org.omg.DynamicAny.DynAnyPackage.TypeMismatchHelper.read ($in);
       else if (_id.equals ("IDL:omg.org/DynamicAny/DynAny/InvalidValue:1.0"))
         throw org.omg.DynamicAny.DynAnyPackage.InvalidValueHelper.read ($in);
       else
         throw new org.omg.CORBA.MARSHAL (_id);
     } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       insert_wstring (value        );
     } finally {
       _releaseReply ($in);
     }
} // insert_wstring

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

/**
    * Inserts a string value into the DynAny.
    * Both bounded and unbounded strings are inserted using this method.
    *
    * @exception InvalidValue if this DynAny has components but has a current position of -1
    * @exception InvalidValue if the string inserted is longer than the bound of a bounded string
    */
public void insert_wstring (String value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue
{
     org.omg.CORBA.portable.InputStream $in = null;
     try {
       org.omg.CORBA.portable.OutputStream $out = _request ("insert_wstring", true);
       $out.write_wstring (value);
       $in = _invoke ($out);
       return;
     } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       if (_id.equals ("IDL:omg.org/DynamicAny/DynAny/TypeMismatch:1.0"))
         throw org.omg.DynamicAny.DynAnyPackage.TypeMismatchHelper.read ($in);
       else if (_id.equals ("IDL:omg.org/DynamicAny/DynAny/InvalidValue:1.0"))
         throw org.omg.DynamicAny.DynAnyPackage.InvalidValueHelper.read ($in);
       else
         throw new org.omg.CORBA.MARSHAL (_id);
     } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       insert_wstring (value        );
     } finally {
       _releaseReply ($in);
     }
} // insert_wstring

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

s.write_wstring((String) o);
break;

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

s.write_wstring((String)o);
break;

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

s.write_wstring((String) o);
break;

代码示例来源:origin: org.mobicents.resources/parlay-provider-api

out.write_wstring(s.WStringValue ());
break;

相关文章