01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.object.dna.impl;
05:
06: import com.tc.io.TCByteBufferInput;
07:
08: import java.io.IOException;
09:
10: public class ObjectDNAImpl extends DNAImpl {
11:
12: private long objectversion;
13:
14: public ObjectDNAImpl(ObjectStringSerializer serializer,
15: boolean createOutput) {
16: super (serializer, createOutput);
17: }
18:
19: public Object deserializeFrom(TCByteBufferInput serialInput)
20: throws IOException {
21: super .deserializeFrom(serialInput);
22: objectversion = this .input.readLong();
23: return this ;
24: }
25:
26: public long getVersion() {
27: return objectversion;
28: }
29:
30: }
|