com.googlecode.icegem.serialization.codegen
Class VersionMap
java.lang.Object
com.googlecode.icegem.serialization.codegen.VersionMap
public class VersionMap
- extends Object
This is optimized version of map to use during de/serialization for metadata validation.
- Author:
- Alexey Kharlamov
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VersionMap
public VersionMap(String className,
int baseVersion,
int size)
put
public void put(byte version,
short hash)
validate
public void validate(byte version,
short hash)
writeAll
public void writeAll(DataOutput out)
throws IOException
- Throws:
IOException
readAndCheck
public void readAndCheck(DataInput in,
byte actualVersion,
byte len)
throws IOException
- Throws:
IOException
Copyright © 2011. All Rights Reserved.