Package org.jboss.serial.objectmetamodel

Examples of org.jboss.serial.objectmetamodel.DataContainer


     {
      if (isDebug)
      {
        log.debug("readExternal");
      }
        container = new DataContainer(false);
        container.loadData(in);
     }
View Full Code Here


    DataContainer container;

    public LocalMarshalledValue (Object obj) throws IOException
    {
        container = new DataContainer(true,null);
        ObjectOutput output = container.getOutput();
        output.writeObject(obj);
    }
View Full Code Here

    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
        byte[] bytes = new byte[in.readInt()];
        in.readFully(bytes);
        ByteArrayInputStream byteInput = new ByteArrayInputStream(bytes);
        DataInputStream input = new DataInputStream(byteInput);
        container = new DataContainer(true,null);
        container.loadData(input);
    }
View Full Code Here

/*     */   }
/*     */
/*     */   public Object readObjectUsingDataContainer()
/*     */     throws IOException, ClassNotFoundException
/*     */   {
/* 148 */     DataContainer container = new DataContainer(this.classLoader, false, this.buffer);
/* 149 */     container.setClassResolver(this.resolver);
/* 150 */     container.loadData(this.dis);
/* 151 */     ObjectInput input = container.getInput();
/* 152 */     return input.readObject();
/*     */   }
View Full Code Here

/*     */   }
/*     */
/*     */   public Object readObjectOverride()
/*     */     throws IOException, ClassNotFoundException
/*     */   {
/* 158 */     DataContainer container = new DataContainer(this.classLoader, false, this.buffer);
/* 159 */     container.setClassResolver(this.resolver);
/*     */
/* 162 */     ObjectInput input = container.getDirectInput(this.dis);
/* 163 */     return input.readObject();
/*     */   }
View Full Code Here

/*    */   }
/*    */
/*    */   private void checkOutput() throws IOException {
/* 69 */     if (this.objectOutput == null)
/*    */     {
/* 71 */       this.dataContainer = new DataContainer(null, getSubstitutionInterface(), this.checkSerializableClass, this.buffer);
/* 72 */       if ((this.output instanceof DataOutputStream))
/*    */       {
/* 74 */         this.dataOutput = ((DataOutputStream)this.output);
/*    */       }
/*    */       else
View Full Code Here

/*    */   }
/*    */
/*    */   public Object readObjectOverride() throws IOException, ClassNotFoundException {
/* 55 */     if (this.input == null)
/*    */     {
/* 57 */       this.container = new DataContainer(this.classLoader, false, this.buffer);
/* 58 */       this.container.setClassResolver(this.resolver);
/* 59 */       this.input = this.container.getDirectInput(this.dis);
/*    */     }
/* 61 */     return this.input.readObject();
/*    */   }
View Full Code Here

/*    */   }
/*    */
/*    */   public MarshalledObjectForLocalCalls(Object obj)
/*    */     throws IOException
/*    */   {
/* 36 */     this.container = new DataContainer(false);
/* 37 */     ObjectOutput output = this.container.getOutput();
/* 38 */     output.writeObject(obj);
/* 39 */     output.flush();
/* 40 */     this.container.flush();
/*    */   }
View Full Code Here

/* 40 */     this.container.flush();
/*    */   }
/*    */
/*    */   public MarshalledObjectForLocalCalls(Object obj, SafeCloningRepository safeToReuse) throws IOException
/*    */   {
/* 45 */     this.container = new DataContainer(null, null, safeToReuse, false, null);
/* 46 */     ObjectOutput output = this.container.getOutput();
/* 47 */     output.writeObject(obj);
/* 48 */     output.flush();
/* 49 */     this.container.flush();
/*    */   }
View Full Code Here

/*    */   {
/* 80 */     if (isDebug)
/*    */     {
/* 82 */       log.debug("readExternal");
/*    */     }
/* 84 */     this.container = new DataContainer(false);
/* 85 */     this.container.loadData(in);
/*    */   }
View Full Code Here

TOP

Related Classes of org.jboss.serial.objectmetamodel.DataContainer

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.