Package org.omg.CORBA

Examples of org.omg.CORBA.MARSHAL


                }
            }
            return (java.io.Serializable) arr;

        } catch (java.io.IOException ex) {
            throw new MARSHAL(ex.getMessage());
        }

    }
View Full Code Here


            }

            return (java.io.Serializable) arr;

        } catch (java.io.IOException ex) {
            throw new MARSHAL(ex.getMessage());
        }

    }
View Full Code Here

                arr[i] = reader.readValueObject(elementType);
            }

            return (java.io.Serializable) arr;
        } catch (java.io.IOException ex) {
            throw new MARSHAL(ex.getMessage());
        }

    }
View Full Code Here

            }

            return (java.io.Serializable) arr;

        } catch (java.io.IOException ex) {
            throw new MARSHAL(ex.getMessage());
        }
    }
View Full Code Here

        return value;
    }

    public Object readValue(org.omg.CORBA.portable.InputStream in) {
        if (isAbstract) {
            throw new MARSHAL("IDL Entity " + getJavaClass().getName()
                    + " is abstract");
        }

        try {
            return _read_method.invoke(null, new Object[] { in });
View Full Code Here

    }

    public void writeValue(org.omg.CORBA.portable.OutputStream out, java.io.Serializable val) {
        if (isAbstract) {
            throw new MARSHAL("IDL Entity " + getJavaClass().getName()
                    + " is abstract");
        }

        try {
            _write_method.invoke(null, new Object[] { out, val });
View Full Code Here

        } else if (obj instanceof Serializable || obj instanceof Externalizable) {

            any.insert_Value((Serializable) obj);

        } else {
            throw new MARSHAL("cannot write as " + obj.getClass()
                    + " to an Any");
        }

        out.write_any(any);
    }
View Full Code Here

            try {
                id = typecode.id();
            } catch (org.omg.CORBA.TypeCodePackage.BadKind ex) {
            }

            throw new MARSHAL("cannot extract " + id + " ("
                    + typecode.kind().value() + ") value from Any");
        }
    }
View Full Code Here

                try {
                    PortableRemoteObject.exportObject((java.rmi.Remote) obj);
                    objref = (javax.rmi.CORBA.Stub) PortableRemoteObject
                            .toStub((java.rmi.Remote) obj);
                } catch (java.rmi.RemoteException ex) {
                    throw new MARSHAL("cannot convert Remote to Object");
                }
            }

        } else {
            throw new MARSHAL(
                    "object is neither Remote nor org.omg.CORBA.Object: "
                            + obj.getClass().getName());
        }

        out.write_Object(objref);
View Full Code Here

                try {
                    PortableRemoteObject.exportObject((Remote) obj);
                    objref = (org.omg.CORBA.Object) PortableRemoteObject
                            .toStub((Remote) obj);
                } catch (RemoteException ex) {
                    throw new MARSHAL("unable to export object");
                }
            }

        }
View Full Code Here

TOP

Related Classes of org.omg.CORBA.MARSHAL

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.