typeIDBuffer,
typeIDBuffer,receiverBuffer,
  public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {    int numInstances = in.readInt ();    List agentNames   = (List) in.readObject ();    int  [] uidAgentIndex = (int  []) in.readObject ();    long [] uidLong       = (long []) in.readObject ();    char [] instanceStringBuffer   = (char [])    in.readObject();    long [] instanceLongBuffer     = (long [])    in.readObject();    int  [] instanceIntBuffer      = (int  [])    in.readObject();    boolean [] instanceBooleanBuffer  = (boolean []) in.readObject();    char   [] nomenStringBuffer  = (char [])    in.readObject();    char   [] typeIDStringBuffer = (char [])    in.readObject();    double [] weightDoubleBuffer = (double [])  in.readObject();    CharBuffer charBuffer = CharBuffer.allocate (instanceStringBuffer.length);    String temp = new String(instanceStringBuffer);    charBuffer.put (temp);    charBuffer.rewind();    CharBuffer nomenBuffer = CharBuffer.allocate (nomenStringBuffer.length);    temp = new String(nomenStringBuffer);    nomenBuffer.put (temp);    nomenBuffer.rewind();    CharBuffer typeIDBuffer = CharBuffer.allocate (typeIDStringBuffer.length);    temp = new String(typeIDStringBuffer);    typeIDBuffer.put (temp);    typeIDBuffer.rewind();    int manifestsSoFar = 0;    for (int i = 0; i < numInstances; i++) {      Instance instance = new Instance ();      manifestsSoFar = instance.readFromBuffer (i, 						manifestsSoFar,						agentNames,						uidAgentIndex,						uidLong,						charBuffer,						instanceLongBuffer,						instanceIntBuffer,						instanceBooleanBuffer,						nomenBuffer,						typeIDBuffer,						weightDoubleBuffer);      addInstance (instance);      //      System.out.println ("Leg #" + i + " is\n" + li);    }  }