implement xlog file reader.