public void readData(DataInput din) throws IOException {
  int length=getDataLength();
  for (int i=0; i < length; i++) {
    din.readByte();
  }
}

public void readData ( DataInput din ) throws IOException { int length = getDataLength ( ) ; for ( int i = 0 ; i < length ; i ++ ) { din . readByte ( ) ; } }
read all of the data that can be read . this is an unsupported function , so it may not be possible to know exactly how much data needs to be read .
