Package net.jini.io

Examples of net.jini.io.MarshalInputStream.readObject()


    new MarshalInputStream(
           System.in,
           ActivationGroupInit.class.getClassLoader(),
           false, null, Collections.EMPTY_LIST);
      in.useCodebaseAnnotations();
      ActivationGroupID id  = (ActivationGroupID)in.readObject();
      ActivationGroupDesc desc = (ActivationGroupDesc)in.readObject();
      long incarnation = in.readLong();
      Class cl = RMIClassLoader.loadClass(desc.getLocation(),
            desc.getClassName());
      try {
View Full Code Here


           System.in,
           ActivationGroupInit.class.getClassLoader(),
           false, null, Collections.EMPTY_LIST);
      in.useCodebaseAnnotations();
      ActivationGroupID id  = (ActivationGroupID)in.readObject();
      ActivationGroupDesc desc = (ActivationGroupDesc)in.readObject();
      long incarnation = in.readLong();
      Class cl = RMIClassLoader.loadClass(desc.getLocation(),
            desc.getClassName());
      try {
    Method create =
View Full Code Here

      MarshalInputStream s =
    new MarshalInputStream(in,
               ActLogHandler.class.getClassLoader(),
               false, null, Collections.EMPTY_LIST);
      s.useCodebaseAnnotations();
      state = (Activation) s.readObject();
  }

  public void writeUpdate(OutputStream out, Object value)
      throws Exception
  {
View Full Code Here

      MarshalInputStream  s =
    new MarshalInputStream(in,
               ActLogHandler.class.getClassLoader(),
               false, null, Collections.EMPTY_LIST);
      s.useCodebaseAnnotations();
      applyUpdate(s.readObject());
  }

  public void applyUpdate(Object update) throws Exception {
      ((LogRecord) update).apply(state);
  }
View Full Code Here

      new MarshalInputStream(bin, defaultLoader, true, defaultLoader,
           Collections.EMPTY_LIST);
  min.useCodebaseAnnotations();

  try {
      Object read = min.readObject();
      throw new RuntimeException(
    "TEST FAILED: object read successfully");
  } catch (ClassNotFoundException e) {
      if (e.getCause() instanceof SecurityException) {
    e.printStackTrace();
View Full Code Here

        MarshalInputStream in =
      new MarshalInputStream(
             new ByteArrayInputStream(bout.toByteArray()),
             bcl, false, null, Collections.EMPTY_SET);
        in.useCodebaseAnnotations();
        verifier = (TrustVerifier) in.readObject();
        in.close();
    }
      } catch (IOException e) {
    throw new UnmarshalException("remarshalling verifier failed",
               e);
View Full Code Here

    {
        Throwable caught = null;
        try {
            MarshalInputStream marshalledResponse = new MarshalInputStream(
                response, null, false, null, new ArrayList());
            caught = (Throwable) marshalledResponse.readObject();
            assertion(marshalledResponse.read() == -1);
        } catch(Throwable t) {
            assertion(false,t.toString());
        }
View Full Code Here

    {
        Throwable caught = null;
        try {
            MarshalInputStream marshalledResponse = new MarshalInputStream(
                response, null, false, null, new ArrayList());
            caught = (Throwable) marshalledResponse.readObject();
            assertion(marshalledResponse.read() == -1);
        } catch(Throwable t) {
            assertion(false,t.toString());
        }
View Full Code Here

        // read and verify method args
        if (params != null) {
            for (int i = 0; i < params.length; i++) {
                Object expected = params[i];
                if (expected == null) {
                    assertion(mis.readObject() == null);
                } else {
                    Object actual =Util.unmarshalValue(expected.getClass(),mis);
                    if (expected.getClass().isArray()) {
                        //contents unchecked
                    } else {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.