private static byte[] extractFullEvent(ReplicatorRuntime runtime,int eventLength,BinlogReader tempPosition,byte[] tmpHeader,int binlogReadTimeout) throws IOException, ReplicatorException, InterruptedException {
  byte[] fullEvent;
  fullEvent=new byte[tmpHeader.length + eventLength];
  readDataFromBinlog(runtime,tempPosition,fullEvent,tmpHeader.length,eventLength,binlogReadTimeout);
  System.arraycopy(tmpHeader,0,fullEvent,0,tmpHeader.length);
  return fullEvent;
}

private static byte [ ] extractFullEvent ( ReplicatorRuntime runtime , int eventLength , BinlogReader tempPosition , byte [ ] tmpHeader , int binlogReadTimeout ) throws IOException , ReplicatorException , InterruptedException { byte [ ] fullEvent ; fullEvent = new byte [ tmpHeader . length + eventLength ] ; readDataFromBinlog ( runtime , tempPosition , fullEvent , tmpHeader . length , eventLength , binlogReadTimeout ) ; System . arraycopy ( tmpHeader , 0 , fullEvent , 0 , tmpHeader . length ) ; return fullEvent ; }
read a full event from the binlog into a byte array
