import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
import java.nio.channels.FileChannel.MapMode;
import java.util.Date;
import com.google.gson.Gson;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* MappedFile信息读取,包括CommitLog,ConsumeQueue,IndexFile
*
*@author wb-jjb318191
*@create 2018-03-16 14:20
*/
public class MappedFileReadingTest {
private static final Logger LOGGER = LoggerFactory.getLogger(MappedFileReadTest.class);
private String filePath;
private MappedByteBuffer mappedByteBuffer;
@Test
public void testReadConsumeQueue() throws IOException {
filePath = "C:\\Users\