KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > dna > impl > ObjectDNAImpl


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.object.dna.impl;
5
6 import com.tc.io.TCByteBufferInputStream;
7
8 import java.io.IOException JavaDoc;
9
10 public class ObjectDNAImpl extends DNAImpl {
11
12   private long objectversion;
13   
14   public ObjectDNAImpl(ObjectStringSerializer serializer, boolean createOutput) {
15     super(serializer, createOutput);
16   }
17   
18   public Object JavaDoc deserializeFrom(TCByteBufferInputStream serialInput) throws IOException JavaDoc {
19     super.deserializeFrom(serialInput);
20     objectversion = this.input.readLong();
21     return this;
22   }
23   
24   public long getVersion() {
25     return objectversion;
26   }
27
28 }
29
Popular Tags