Examples of readObject()


Examples of org.infinispan.marshall.AdvancedExternalizer.readObject()

            default:
               throw new CacheException(String.format(
                     "Unknown index (%d) for externalizer %s",
                     index, this.getClass().getName()));
         }
         return ext.readObject(input);
      }

      @Override
      public Integer getId() {
         return 767;
View Full Code Here

Examples of org.itsnat.impl.core.servlet.ItsNatSessionObjectInputStream.readObject()

           byte[] stream = ostream.toByteArray();
           istream = new ByteArrayInputStream(stream);
           ObjectInputStream q = new ItsNatSessionObjectInputStream(istream); // ItsNatSessionObjectInputStream es INTERNO DE ITSNAT s´┐Żlo usar para estas pruebas
           //clientDoc = (ClientDocument)q.readObject();
           session = (ItsNatSession)q.readObject();
           istream.close();    // close the file.
        }
        catch (Exception ex)
        {
            try
View Full Code Here

Examples of org.jboss.ejb3.proxy.impl.io.ObjectInputStream.readObject()

      out.flush();
      out.close();
     
      ByteArrayInputStream bin = new ByteArrayInputStream(bout.toByteArray());
      ObjectInputStream in = new ObjectInputStream(bin, target);
      Object result = in.readObject();
      in.close();
      return result;
   }
  
   /**
 
View Full Code Here

Examples of org.jboss.fresh.io.BufferObjectReader.readObject()

    // if no params, just let through everything
    // if type param, do some filtering.
    if (params.length == 0) {
      log.info("No parameters specified. Just piping through.");
      while (!oin.isFinished()) {
        oout.writeObject(oin.readObject());
      }
      oout.close();
      log.debug("done");
      return;
    }
View Full Code Here

Examples of org.jboss.invocation.MarshalledValueInputStream.readObject()

               cache.getRegionManager().setUnmarshallingClassLoader(name);

               byte[] nodeData = (byte[]) resp[0];
               ByteArrayInputStream bais = new ByteArrayInputStream(nodeData);
               MarshalledValueInputStream mais = new MarshalledValueInputStream(bais);
               nodes = (List) mais.readObject();
               mais.close();
            }
            finally
            {
               Thread.currentThread().setContextClassLoader(cl);
View Full Code Here

Examples of org.jboss.marshalling.Unmarshaller.readObject()

        final String appName;
        final String moduleName;
        final String distinctName;
        final String beanName;
        try {
            appName = (String) unmarshaller.readObject();
            moduleName = (String) unmarshaller.readObject();
            distinctName = (String) unmarshaller.readObject();
            beanName = (String) unmarshaller.readObject();
        } catch (Throwable e) {
            throw EjbMessages.MESSAGES.failedToReadEjbInfo(e);
View Full Code Here

Examples of org.jboss.mx.server.ObjectInputStreamWithClassLoader.readObject()

                // use system loader
                cl = SerializationHelper.class.getClassLoader();
            }
            ByteArrayInputStream bytearrayinputstream = new ByteArrayInputStream(byteArray);
            ObjectInputStream objectinputstream = new ObjectInputStreamWithClassLoader(bytearrayinputstream,cl);
            Object obj = objectinputstream.readObject();
            return obj;
        }
        catch (OptionalDataException optionaldataexception)
        {
            throw new IOException(optionaldataexception.getMessage());
View Full Code Here

Examples of org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.readObject()

      // need to use the thread context class loader, otherwise deserialization of various
      // remoting and messaging things will fail in a scoped domain
      ObjectInputStream ois =
         new ObjectInputStreamWithClassLoader(is, SecurityActions.getTCL());

      payload = ois.readObject();
   }

   public void write(DataOutputStream os) throws Exception
   {
      super.write(os);
View Full Code Here

Examples of org.jboss.serial.io.JBossObjectInputStream.readObject()

     
      ByteArrayInputStream is = new ByteArrayInputStream(bytes);
     
      JBossObjectInputStream ois = new JBossObjectInputStream(is);
     
      TestMessage tm2 = (TestMessage)ois.readObject();
     
      assertEquals(tm.id, tm2.id);
     
      ois.close();
           
View Full Code Here

Examples of org.jboss.serial.io.JBossObjectInputStreamSharedTree.readObject()

    objOut.reset();
    objOut.writeObject(circular.getReferences());
   
    ObjectInputStream objInput = new JBossObjectInputStreamSharedTree(new ByteArrayInputStream(byteOut.toByteArray()));
   
    Object first = objInput.readObject();
    TestCircularReferences second = (TestCircularReferences)objInput.readObject();
    Object third = objInput.readObject();
    assertSame((Object)second.getReferences(),first);
    assertEquals(circular.getReferences().size(),((Collection)third).size());
    assertNotSame(third,second);
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.