Java Code Examples for org.omg.CORBA.portable.Streamable._write

The following are Jave code examples for showing how to use _write of the org.omg.CORBA.portable.Streamable class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: javify   File: AbstractCdrOutput.java   Source Code and License Vote up 5 votes
/**
 * Writes an instance of the CORBA {@link Any}.
 * This method writes the typecode, followed
 * by value itself. In Any contains null
 * (value not set), the {@link TCKind#tk_null}
 * is written.
 *
 * @param x the {@link Any} to write.
 */
public void write_any(Any x)
{
  Streamable value = x.extract_Streamable();
  if (value != null)
    {
      write_TypeCode(x.type());
      value._write(this);
    }
  else
    {
      PrimitiveTypeCode p = new PrimitiveTypeCode(TCKind.tk_null);
      write_TypeCode(p);
    }
}
 
Example 2
Project: jvm-stm   File: AbstractCdrOutput.java   Source Code and License Vote up 5 votes
/**
 * Writes an instance of the CORBA {@link Any}.
 * This method writes the typecode, followed
 * by value itself. In Any contains null
 * (value not set), the {@link TCKind#tk_null}
 * is written.
 *
 * @param x the {@link Any} to write.
 */
public void write_any(Any x)
{
  Streamable value = x.extract_Streamable();
  if (value != null)
    {
      write_TypeCode(x.type());
      value._write(this);
    }
  else
    {
      PrimitiveTypeCode p = new PrimitiveTypeCode(TCKind.tk_null);
      write_TypeCode(p);
    }
}
 
Example 3
Project: JamVM-PH   File: AbstractCdrOutput.java   Source Code and License Vote up 5 votes
/**
 * Writes an instance of the CORBA {@link Any}.
 * This method writes the typecode, followed
 * by value itself. In Any contains null
 * (value not set), the {@link TCKind#tk_null}
 * is written.
 *
 * @param x the {@link Any} to write.
 */
public void write_any(Any x)
{
  Streamable value = x.extract_Streamable();
  if (value != null)
    {
      write_TypeCode(x.type());
      value._write(this);
    }
  else
    {
      PrimitiveTypeCode p = new PrimitiveTypeCode(TCKind.tk_null);
      write_TypeCode(p);
    }
}
 
Example 4
Project: classpath   File: AbstractCdrOutput.java   Source Code and License Vote up 5 votes
/**
 * Writes an instance of the CORBA {@link Any}.
 * This method writes the typecode, followed
 * by value itself. In Any contains null
 * (value not set), the {@link TCKind#tk_null}
 * is written.
 *
 * @param x the {@link Any} to write.
 */
public void write_any(Any x)
{
  Streamable value = x.extract_Streamable();
  if (value != null)
    {
      write_TypeCode(x.type());
      value._write(this);
    }
  else
    {
      PrimitiveTypeCode p = new PrimitiveTypeCode(TCKind.tk_null);
      write_TypeCode(p);
    }
}