Package org.jboss.remoting.serialization

Examples of org.jboss.remoting.serialization.SerializationManager


            ByteArrayInputStream is = null;
            if (rmiOnewayMarshalling)
            {
               // Legacy treatment, pre 2.4.0
               ByteArrayOutputStream baos = new ByteArrayOutputStream();
               SerializationManager manager = SerializationStreamFactory.getManagerInstance(getSerializationType());
               ObjectOutputStream oos = manager.createOutput(baos);
               SecurityUtility.writeObject(oos, payload);
               oos.flush();
               oos.close();
               is = new ByteArrayInputStream(baos.toByteArray());
            }
View Full Code Here


              
               if (rmiOnewayMarshalling)
               {
                  // Legacy treatment, pre 2.4.0.
                  ByteArrayInputStream bais = new ByteArrayInputStream(byteOut.toByteArray());
                  SerializationManager manager = SerializationStreamFactory.getManagerInstance(getSerializationType());
                  ObjectInputStream ois = manager.createInput(bais, getClassLoader());

                  try
                  {
                     byteOut.close();
                     payload = SecurityUtility.readObject(ois);
View Full Code Here

/*     */     {
/*  66 */       return inputStream;
/*     */     }
/*     */
/*  70 */     BufferedInputStream bis = new BufferedInputStream(inputStream);
/*  71 */     SerializationManager manager = SerializationStreamFactory.getManagerInstance(getSerializationType());
/*  72 */     return manager.createInput(bis, this.customClassLoader);
/*     */   }
View Full Code Here

/*     */     {
/*  83 */       return outputStream;
/*     */     }
/*     */
/*  87 */     BufferedOutputStream bos = new BufferedOutputStream(outputStream);
/*  88 */     SerializationManager manager = SerializationStreamFactory.getManagerInstance(getSerializationType());
/*  89 */     ObjectOutputStream oos = manager.createOutput(bos);
/*  90 */     oos.flush();
/*  91 */     return oos;
/*     */   }
View Full Code Here

/*     */
/* 128 */     EncryptionOutputStream eos = new EncryptionOutputStream(output);
/*     */
/* 130 */     CipherOutputStream cos = new CipherOutputStream(eos, this.cipher);
/*     */
/* 132 */     SerializationManager sm = SerializationStreamFactory.getManagerInstance(getSerializationType());
/* 133 */     ObjectOutputStream oos = sm.createOutput(cos);
/*     */
/* 135 */     if (this.wrappedMarshaller != null)
/*     */     {
/* 137 */       if ((this.wrappedMarshaller instanceof VersionedMarshaller))
/* 138 */         ((VersionedMarshaller)this.wrappedMarshaller).write(dataObject, oos, version);
View Full Code Here

/*     */     throws IOException, ClassNotFoundException
/*     */   {
/* 116 */     if (this.cipher == null)
/* 117 */       throw new IllegalStateException("Cipher is null for algo=" + this.cipherAlgorithm);
/* 118 */     CipherInputStream cis = new CipherInputStream(inputStream, this.cipher);
/* 119 */     SerializationManager sm = SerializationStreamFactory.getManagerInstance(getSerializationType());
/* 120 */     ObjectInputStream ois = sm.createRegularInput(cis);
/*     */
/* 122 */     Object obj = null;
/* 123 */     if (this.wrappedUnMarshaller != null)
/*     */     {
/* 125 */       if ((this.wrappedUnMarshaller instanceof VersionedUnMarshaller)) {
View Full Code Here

      //EOS intercepts the close() call and does not close the stream
      EncryptionOutputStream eos = new EncryptionOutputStream(output);
      
      CipherOutputStream cos = new CipherOutputStream(eos, cipher);
      
      SerializationManager sm = SerializationStreamFactory.getManagerInstance(getSerializationType());
      ObjectOutputStream oos = sm.createOutput(cos);
     
      if(wrappedMarshaller != null)
      {
         wrappedMarshaller.write(dataObject, oos);
      }
View Full Code Here

   public Object read(InputStream inputStream, Map metadata) throws IOException, ClassNotFoundException
  
      if(cipher == null)
         throw new IllegalStateException("Cipher is null for algo="+ this.cipherAlgorithm);
      CipherInputStream cis = new CipherInputStream(inputStream,cipher);
      SerializationManager sm = SerializationStreamFactory.getManagerInstance(getSerializationType());
      ObjectInputStream ois = sm.createRegularInput(cis);
      
      Object obj = null;
      if(wrappedUnMarshaller != null)
      {
         obj = wrappedUnMarshaller.read(ois, metadata);
View Full Code Here

            ByteArrayInputStream is = null;
            if (rmiOnewayMarshalling)
            {
               // Legacy treatment, pre 2.4.0
               ByteArrayOutputStream baos = new ByteArrayOutputStream();
               SerializationManager manager = SerializationStreamFactory.getManagerInstance(getSerializationType());
               ObjectOutputStream oos = manager.createOutput(baos);
               writeObject(oos, payload);
               oos.flush();
               oos.close();
               is = new ByteArrayInputStream(baos.toByteArray());
            }
View Full Code Here

              
               if (rmiOnewayMarshalling)
               {
                  // Legacy treatment, pre 2.4.0.
                  ByteArrayInputStream bais = new ByteArrayInputStream(byteOut.toByteArray());
                  SerializationManager manager = SerializationStreamFactory.getManagerInstance(getSerializationType());
                  ObjectInputStream ois = manager.createInput(bais, getClassLoader());

                  try
                  {
                     byteOut.close();
                     payload = readObject(ois);
View Full Code Here

TOP

Related Classes of org.jboss.remoting.serialization.SerializationManager

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.