if (buffer instanceof DataBufferByte) return ((DataBufferByte) buffer).getData();  if (buffer instanceof DataBufferShort) return ((DataBufferShort) buffer).getData();  if (buffer instanceof DataBufferUShort) return ((DataBufferUShort) buffer).getData();  if (buffer instanceof DataBufferInt) return ((DataBufferInt) buffer).getData();  if (buffer instanceof DataBufferFloat) return ((DataBufferFloat) buffer).getData();  if (buffer instanceof DataBufferDouble) return ((DataBufferDouble) buffer).getData();  throw new ClassCastException("Unknown data buffer type");
return getData(buffer, 0, null, 0, buffer.getSize());
  public static Object getData(DataBuffer buffer)  {		if (buffer instanceof DataBufferByte)			return ((DataBufferByte) buffer).getData();    if (buffer instanceof DataBufferShort)      return ((DataBufferShort) buffer).getData();		if (buffer instanceof DataBufferUShort)			return ((DataBufferUShort) buffer).getData();		if (buffer instanceof DataBufferInt)			return ((DataBufferInt) buffer).getData();    if (buffer instanceof DataBufferFloat)      return ((DataBufferFloat) buffer).getData();    if (buffer instanceof DataBufferDouble)      return ((DataBufferDouble) buffer).getData();		throw new ClassCastException("Unknown data buffer type");	}