code: public static Object[] readObjects(ChannelBuffer buffer, int numOfObjects)
  	{
  		Object[] objects = new String[numOfObjects];
  		for (int i = 0; i < numOfObjects; i++)
  		{
  			Object theObject = readObject(buffer);
  			if (null == theObject)
  				break;
  			objects[i] = theObject;
  		}
  		return objects;
  	}
docs: This method will read multiple objects of the buffer and return them as
  an object array. It internally uses the readObject(ChannelBuffer buffer)
  to accomplish this task. The objects are read back in the order they are
  written.
  
  @param buffer
  The buffer containing the objects, with each object being a
  objlength-objbytes combination.
  @param numOfObjects
  The number of objects to be read. Should not be negative or 0
  @return the objects read from the buffer as an array.