@@ -0,0 +1,2059 @@
+package fr.paris10.poa.td4.filesystem;%0A%0Aimport java.util.HashMap;%0A%0A/**%0A * Created by vabouque on 17/10/2016.%0A */%0Apublic class LinuxFactory implements AbstractFileFactory %7B%0A    static AbstractFileFactory instance;%0A    private final String root = %22/%22;%0A    private HashMap%3CString, AbstractFile%3E fileTree;%0A%0A    private LinuxFactory() %7B%0A        this.fileTree = new HashMap%3CString, AbstractFile%3E();%0A    %7D%0A%0A    public AbstractFileFactory createFactory() %7B%0A        if (instance == null) %7B%0A            instance = new LinuxFactory();%0A        %7D%0A        return instance;%0A    %7D%0A%0A%0A    @Override%0A    //TODO createAbstractFile%0A    public AbstractFile createAbstractFile(String fileName) %7B%0A        return null;%0A    %7D%0A%0A    @Override%0A    //TODO createDirectory%0A    public AbstractFile createDirectory(String directoryName, String directoryParentName) %7B%0A        return null;%0A    %7D%0A%0A    @Override%0A    //TODO createAbstractFile%0A    public AbstractFile createAbstractFile(String fileName, String directoryParentName) %7B%0A        return null;%0A    %7D%0A%0A    @Override%0A    //TODO createDirectory%0A    public AbstractFile createDirectory(String directoryName) %7B%0A        return null;%0A    %7D%0A%0A    @Override%0A    //TODO readFile%0A    public String readFile(String fileName) %7B%0A        return null;%0A    %7D%0A%0A    @Override%0A    //TODO writeInFile%0A    public void writeInFile(String fileName, String message) %7B%0A%0A    %7D%0A%0A    @Override%0A    //TODO deleteFile%0A    public void deleteFile(String fileName) %7B%0A%0A    %7D%0A%0A    @Override%0A    public boolean equals(Object o) %7B%0A        if (this == o) return true;%0A        if (o == null %7C%7C getClass() != o.getClass()) return false;%0A%0A        LinuxFactory that = (LinuxFactory) o;%0A%0A        if (root != null ? !root.equals(that.root) : that.root != null) return false;%0A        return fileTree != null ? fileTree.equals(that.fileTree) : that.fileTree == null;%0A%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        int result = root != null ? root.hashCode() : 0;%0A        result = 31 * result + (fileTree != null ? fileTree.hashCode() : 0);%0A        return result;%0A    %7D%0A%0A%0A%7D%0A

Add LinuxFactory