Package org.omg.CORBA.portable

Examples of org.omg.CORBA.portable.InputStream


  extends ObjectImpl
  implements TestLocationForwardServer
{
  public void setForwardRequest(org.omg.CORBA.Object obj)
  {
    InputStream in = null;
    try
      {
        OutputStream out = _request("setForwardRequest", true);
        ObjectHelper.write(out, obj);
        in = _invoke(out);
View Full Code Here


      }
  } // setForwardRequest

  public org.omg.CORBA.Object get_servant()
  {
    InputStream in = null;
    try
      {
        OutputStream out = _request("get_servant", true);
        in = _invoke(out);
View Full Code Here

      }
  } // get_servant

  public void deactivate()
  {
    InputStream in = null;
    try
      {
        OutputStream out = _request("deactivate", true);
        in = _invoke(out);
        return;
View Full Code Here

      case TCKind._tk_except:
      case TCKind._tk_struct:
      case TCKind._tk_union:
      case TCKind._tk_sequence:
      case TCKind._tk_array:
    InputStream copyOfMyStream = this.create_input_stream();
    InputStream copyOfOtherStream = otherAny.create_input_stream();
    return equalMember(realType, copyOfMyStream, copyOfOtherStream);

      // Too complicated to handle value types the way we handle
      // other complex types above. Don't try to decompose it here
      // for faster comparison, just use Object.equals().
View Full Code Here

                    new RequestConfigurationException(
                                                      "ApplicationException occured, but no exception type was specified.",
                                                      ae.getId());
                throw exception;
            }
            InputStream is = ae.getInputStream();
            String exceptionId = is.read_string();
            TypeTree tree = exceptions.get(exceptionId);
            if (tree == null) {
                RequestConfigurationException exception =
                    new RequestConfigurationException(
                                                      "ApplicationException occured, but no such exception was defined",
View Full Code Here

   public org.omg.CORBA.Any to_any()
   {
      checkDestroyed ();
      final org.omg.CORBA.Any out_any = orb.create_any();
      out_any.type( type());
      final InputStream in = getRepresentation().create_input_stream();
      try
      {
          out_any.read_value( in, type());
          return out_any;
      }
      finally
      {
          try
          {
              in.close();
          } catch (IOException e)
          {
              logger.error("unable to close stream", e);
          }
      }
View Full Code Here

   * @see gnu.CORBA.GIOP.CharSets_OSF for supported and default
   * encodings.
   */
  public String passCharacters(String wide, String narrow)
  {
    InputStream in = null;
    try
      {
        // Get the output stream.
        OutputStream out = _request("passCharacters", true);

        // Write the parameters.

        // The first string is passed as "wide"
        // (usually 16 bit UTF-16) string.
        out.write_wstring(wide);

        // The second string is passed as "narrow"
        // (usually 8 bit ISO8859_1) string.
        out.write_string(narrow);

        // Do the invocation.
        in = _invoke(out);

        // Read the method return value.
        String result = in.read_wstring();
        return result;
      }
    catch (ApplicationException ex)
      {
        // The exception has been throws on remote side, but we
View Full Code Here

   */
  public int passSimple(ByteHolder an_octet, int a_long, ShortHolder a_short,
                        StringHolder a_string, DoubleHolder a_double
                       )
  {
    InputStream in = null;
    try
      {
        // Get the stream where the parameters must be written:
        OutputStream out = _request("passSimple", true);

        // Write the parameters.
        out.write_octet(an_octet.value);
        out.write_long(a_long);
        out.write_short(a_short.value);
        out.write_string(a_string.value);

        // Invoke the method.
        in = _invoke(out);

        // Read the returned values.
        int result = in.read_long();

        // Read the inout and out parameters.
        an_octet.value = in.read_octet();
        a_short.value = in.read_short();
        a_string.value = in.read_string();
        a_double.value = in.read_double();
        return result;
      }
    catch (ApplicationException ex)
      {
        // Handle excepion on remote side.
View Full Code Here

  /**
    Passes and returns the string sequence.
    */
  public String[] passStrings(String[] arg)
  {
    InputStream in = null;
    try
      {
        // Get the stream where the parameters must be written:
        OutputStream out = _request("passStrings", true);

View Full Code Here

  /**
    Passes and returns the structures.
    */
  public returnThis passStructure(passThis in_structure)
  {
    InputStream in = null;
    try
      {
        // Get the stream where the parameters must be written.
        OutputStream out = _request("passStructure", true);

View Full Code Here

TOP

Related Classes of org.omg.CORBA.portable.InputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.