Package org.jboss.serial.objectmetamodel

Examples of org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput


/* 143 */       this.dataOutput = new DataOutputStream(output);
/*     */     }
/*     */   }
/*     */
/*     */   public void writeObjectUsingDataContainer(Object obj) throws IOException {
/* 148 */     DataContainer dataContainer = new DataContainer(null, getSubstitutionInterface(), this.checkSerializableClass, this.buffer);
/* 149 */     if ((this.output instanceof DataOutputStream))
/*     */     {
/* 151 */       this.dataOutput = ((DataOutputStream)this.output);
/*     */     }
/*     */     else
/*     */     {
/* 155 */       this.dataOutput = new DataOutputStream(this.output);
/*     */     }
/*     */
/* 158 */     ObjectOutput objectOutput = dataContainer.getOutput();
/* 159 */     objectOutput.writeObject(obj);
/*     */
/* 162 */     dataContainer.saveData(this.dataOutput);
/*     */   }
View Full Code Here


/*     */   }
/*     */
/*     */   protected void writeObjectOverride(Object obj)
/*     */     throws IOException
/*     */   {
/* 168 */     DataContainer dataContainer = new DataContainer(null, getSubstitutionInterface(), this.checkSerializableClass, this.buffer);
/* 169 */     if ((this.output instanceof DataOutputStream))
/*     */     {
/* 171 */       this.dataOutput = ((DataOutputStream)this.output);
/*     */     }
/*     */     else
/*     */     {
/* 175 */       this.dataOutput = new DataOutputStream(this.output);
/*     */     }
/*     */
/* 178 */     dataContainer.setStringBuffer(this.buffer);
/*     */
/* 180 */     ObjectOutput objectOutput = dataContainer.getDirectOutput(this.dataOutput);
/* 181 */     objectOutput.writeObject(obj);
/*     */   }
View Full Code Here

/*     */   }
/*     */
/*     */   public Object smartClone(Object obj, SafeCloningRepository safeToReuse, ClassLoader loader)
/*     */     throws IOException
/*     */   {
/* 326 */     DataContainer container = new DataContainer(loader, getSubstitutionInterface(), safeToReuse, this.checkSerializableClass, this.buffer);
/* 327 */     ObjectOutput output = container.getOutput();
/* 328 */     output.writeObject(obj);
/* 329 */     output.flush();
/*     */
/* 331 */     ObjectInput input = container.getInput();
/*     */     try
/*     */     {
/* 334 */       return input.readObject();
/*     */     }
/*     */     catch (ClassNotFoundException e) {
View Full Code Here

/*     */   }
/*     */
/*     */   public LocalMarshalledValue(Object obj)
/*     */     throws IOException
/*     */   {
/*  64 */     this.container = new DataContainer(false);
/*  65 */     ObjectOutput output = this.container.getOutput();
/*  66 */     output.writeObject(obj);
/*  67 */     output.flush();
/*  68 */     this.container.flush();
/*     */   }
View Full Code Here

/*  68 */     this.container.flush();
/*     */   }
/*     */
/*     */   public LocalMarshalledValue(Object obj, SafeCloningRepository safeToReuse) throws IOException
/*     */   {
/*  73 */     this.container = new DataContainer(null, null, safeToReuse, false);
/*  74 */     ObjectOutput output = this.container.getOutput();
/*  75 */     output.writeObject(obj);
/*  76 */     output.flush();
/*  77 */     this.container.flush();
/*     */   }
View Full Code Here

/* 113 */     log.warn("LocalmarshalledValue readExternal is deprecated. This version is best used on call-by-value operations");
/* 114 */     byte[] bytes = new byte[in.readInt()];
/* 115 */     in.readFully(bytes);
/* 116 */     ByteArrayInputStream byteInput = new ByteArrayInputStream(bytes);
/* 117 */     DataInputStream input = new DataInputStream(byteInput);
/* 118 */     this.container = new DataContainer(false);
/* 119 */     this.container.loadData(input);
/*     */   }
View Full Code Here

TOP

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

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.