@@ -0,0 +1,2490 @@
+package net.worph.testvfs.nio;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.File;%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.io.InputStreamReader;%0Aimport java.io.OutputStream;%0Aimport java.io.PrintStream;%0Aimport java.net.URI;%0Aimport java.nio.file.FileSystem;%0Aimport java.nio.file.Files;%0Aimport java.nio.file.Path;%0Aimport java.nio.file.StandardOpenOption;%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0Aimport java.util.logging.Level;%0Aimport java.util.logging.Logger;%0Aimport junit.framework.TestCase;%0Aimport net.worph.filesytem.IOAbstractionLayer.BytePack;%0Aimport net.worph.filesytem.IOAbstractionLayer.memoryMappedImpl.MemoryMapedFile;%0Aimport net.worph.filesytem.nio.WFSNIOFileSystemProvider;%0A%0A/**%0A * Hello world!%0A *%0A */%0Apublic class TestReadWriteFile  extends TestCase%7B%0A    %0A    private static String testStr = %22Hello World :3%22;%0A    %0A    public void testMain() %7B%0A        try %7B%0A            WFSNIOFileSystemProvider wfsnioFileSystemProvider = new WFSNIOFileSystemProvider();%0A            Map%3CString,Object%3E env = new HashMap%3C%3E();%0A            File file = new File(%22./vfsbinaryfile%22);%0A            file.createNewFile();%0A            BytePack test = new MemoryMapedFile(file.toURI(), 50000);%0A            env.put(%22bytepack%22, test);%0A            FileSystem fileSystem = wfsnioFileSystemProvider.newFileSystem(URI.create(%22wfs:testWFS%22),env);%0A            Path root = fileSystem.getPath(%22/%22);%0A            Path file1 = root.resolve(%22file.txt%22);%0A            %0A            //create delete%0A            Files.createFile(file1);%0A            %0A            //open close / read write%0A            OutputStream newOutputStream = Files.newOutputStream(file1, StandardOpenOption.WRITE);%0A            PrintStream printStream = new PrintStream(newOutputStream);%0A            printStream.println(testStr);%0A            printStream.close();%0A            %0A            InputStream newInputStream = Files.newInputStream(file1, StandardOpenOption.READ);%0A            BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(newInputStream));%0A            String readLine = bufferedReader.readLine();%0A            bufferedReader.close();%0A            %0A            if(!testStr.equals(readLine))%7B%0A                throw new IOException(%22invalide read : %22+readLine);%0A            %7D            %0A            //rename copy%0A        %7D catch (IOException ex) %7B%0A            assertFalse(true);%0A            Logger.getLogger(TestReadWriteFile.class.getName()).log(Level.SEVERE, null, ex);%0A        %7D%0A    %7D%0A%7D%0A

Add Test NIO