@@ -0,0 +1,1598 @@
+package com.github.magnusja.libaums.javafs;%0A%0Aimport android.util.Log;%0A%0Aimport com.github.magnusja.libaums.javafs.wrapper.DeviceWrapper;%0Aimport com.github.magnusja.libaums.javafs.wrapper.FSBlockDeviceWrapper;%0Aimport com.github.magnusja.libaums.javafs.wrapper.FileSystemWrapper;%0Aimport com.github.mjdev.libaums.driver.BlockDeviceDriver;%0Aimport com.github.mjdev.libaums.fs.FileSystem;%0Aimport com.github.mjdev.libaums.fs.FileSystemCreator;%0Aimport com.github.mjdev.libaums.partition.PartitionTableEntry;%0Aimport com.github.mjdev.libaums.partition.PartitionTypes;%0A%0Aimport org.jnode.fs.FileSystemException;%0Aimport org.jnode.fs.FileSystemType;%0Aimport org.jnode.fs.fat.FatFileSystemType;%0A%0Aimport java.io.IOException;%0Aimport java.nio.ByteBuffer;%0A%0A/**%0A * Created by magnusja on 3/1/17.%0A */%0A%0Apublic class FatFileSystemCreator implements FileSystemCreator %7B%0A    @Override%0A    public FileSystem read(PartitionTableEntry entry, BlockDeviceDriver blockDevice) throws IOException %7B%0A%0A        try %7B%0A            FSBlockDeviceWrapper wrapper = new FSBlockDeviceWrapper(blockDevice, entry);%0A            FileSystemType type = new FatFileSystemType();%0A            ByteBuffer buffer = ByteBuffer.allocate(512);%0A            blockDevice.read(0, buffer);%0A            if(type.supports(wrapper.getPartitionTableEntry(), buffer.array() , wrapper)) %7B%0A                return new FileSystemWrapper(type.create(new DeviceWrapper(blockDevice, entry), true));%0A            %7D%0A%0A            return null;%0A%0A        %7D catch (FileSystemException e) %7B%0A            Log.e(%22asd%22, %22should not happen%22, e);%0A            return null;%0A        %7D%0A    %7D%0A%7D%0A

Add test fat fs creator