public class FqnExternalizer implements Externalizer {
public void writeObject(ObjectOutput output, Object object) throws IOException {
Fqn fqn = (Fqn) object;
output.writeShort(fqn.size());
for (Object element : fqn.peekElements()) output.writeObject(element);
}
public Object readObject(ObjectInput input) throws IOException, ClassNotFoundException {
short size = input.readShort();
List elements = new ArrayList(size);