Java Code Examples for org.omg.CORBA.DataOutputStream

The following are top voted examples for showing how to use org.omg.CORBA.DataOutputStream. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: javify   File: Vio.java   View source code 6 votes vote down vote up
/**
 * Try to write value supposing that it implements self-streamable interfaces.
 * Return false if it does not or true on success.
 */
static boolean writeSelf(OutputStream output, Serializable value)
{
  // User defined write method is present.
  if (value instanceof CustomMarshal)
    {
      ((CustomMarshal) value).marshal((DataOutputStream) output);
      return true;
    }
  else if (value instanceof Streamable)
    {
      ((Streamable) value)._write(output);
      return true;
    }
  return false;
}
 
Example 2
Project: jvm-stm   File: Vio.java   View source code 6 votes vote down vote up
/**
 * Try to write value supposing that it implements self-streamable interfaces.
 * Return false if it does not or true on success.
 */
static boolean writeSelf(OutputStream output, Serializable value)
{
  // User defined write method is present.
  if (value instanceof CustomMarshal)
    {
      ((CustomMarshal) value).marshal((DataOutputStream) output);
      return true;
    }
  else if (value instanceof Streamable)
    {
      ((Streamable) value)._write(output);
      return true;
    }
  return false;
}
 
Example 3
Project: JamVM-PH   File: Vio.java   View source code 6 votes vote down vote up
/**
 * Try to write value supposing that it implements self-streamable interfaces.
 * Return false if it does not or true on success.
 */
static boolean writeSelf(OutputStream output, Serializable value)
{
  // User defined write method is present.
  if (value instanceof CustomMarshal)
    {
      ((CustomMarshal) value).marshal((DataOutputStream) output);
      return true;
    }
  else if (value instanceof Streamable)
    {
      ((Streamable) value)._write(output);
      return true;
    }
  return false;
}
 
Example 4
Project: classpath   File: Vio.java   View source code 6 votes vote down vote up
/**
 * Try to write value supposing that it implements self-streamable interfaces.
 * Return false if it does not or true on success.
 */
static boolean writeSelf(OutputStream output, Serializable value)
{
  // User defined write method is present.
  if (value instanceof CustomMarshal)
    {
      ((CustomMarshal) value).marshal((DataOutputStream) output);
      return true;
    }
  else if (value instanceof Streamable)
    {
      ((Streamable) value)._write(output);
      return true;
    }
  return false;
}
 
Example 5
Project: OpenJSharp   File: CustomMarshal.java   View source code 2 votes vote down vote up
/**
 * Marshal method has to be implemented by the Customized Marshal class.
 * This is the method invoked for Marshalling.
 *
 * @param os a DataOutputStream
 */
void marshal(DataOutputStream os);
 
Example 6
Project: openjdk-jdk10   File: CustomMarshal.java   View source code 2 votes vote down vote up
/**
 * Marshal method has to be implemented by the Customized Marshal class.
 * This is the method invoked for Marshalling.
 *
 * @param os a DataOutputStream
 */
void marshal(DataOutputStream os);
 
Example 7
Project: openjdk9   File: CustomMarshal.java   View source code 2 votes vote down vote up
/**
 * Marshal method has to be implemented by the Customized Marshal class.
 * This is the method invoked for Marshalling.
 *
 * @param os a DataOutputStream
 */
void marshal(DataOutputStream os);
 
Example 8
Project: Java8CN   File: CustomMarshal.java   View source code 2 votes vote down vote up
/**
 * Marshal method has to be implemented by the Customized Marshal class.
 * This is the method invoked for Marshalling.
 *
 * @param os a DataOutputStream
 */
void marshal(DataOutputStream os);
 
Example 9
Project: lookaside_java-1.8.0-openjdk   File: CustomMarshal.java   View source code 2 votes vote down vote up
/**
 * Marshal method has to be implemented by the Customized Marshal class.
 * This is the method invoked for Marshalling.
 *
 * @param os a DataOutputStream
 */
void marshal(DataOutputStream os);
 
Example 10
Project: jdk8u_corba   File: CustomMarshal.java   View source code 2 votes vote down vote up
/**
 * Marshal method has to be implemented by the Customized Marshal class.
 * This is the method invoked for Marshalling.
 *
 * @param os a DataOutputStream
 */
void marshal(DataOutputStream os);
 
Example 11
Project: infobip-open-jdk-8   File: CustomMarshal.java   View source code 2 votes vote down vote up
/**
 * Marshal method has to be implemented by the Customized Marshal class.
 * This is the method invoked for Marshalling.
 *
 * @param os a DataOutputStream
 */
void marshal(DataOutputStream os);
 
Example 12
Project: openjdk-source-code-learn   File: CustomMarshal.java   View source code 2 votes vote down vote up
/**
 * Marshal method has to be implemented by the Customized Marshal class.
 * This is the method invoked for Marshalling.
 *
 * @param os a DataOutputStream
 */
void marshal(DataOutputStream os);
 
Example 13
Project: OLD-OpenJDK8   File: CustomMarshal.java   View source code 2 votes vote down vote up
/**
 * Marshal method has to be implemented by the Customized Marshal class.
 * This is the method invoked for Marshalling.
 *
 * @param os a DataOutputStream
 */
void marshal(DataOutputStream os);
 
Example 14
Project: openjdk-orb   File: CustomMarshal.java   View source code 2 votes vote down vote up
/**
 * Marshal method has to be implemented by the Customized Marshal class.
 * This is the method invoked for Marshalling.
 *
 * @param os a DataOutputStream
 */
void marshal(DataOutputStream os);
 
Example 15
Project: openjdk-icedtea7   File: CustomMarshal.java   View source code 2 votes vote down vote up
/**
 * Marshal method has to be implemented by the Customized Marshal class.
 * This is the method invoked for Marshalling.
 *
 * @param os a DataOutputStream
 */
void marshal(DataOutputStream os);