@@ -0,0 +1,2009 @@
+package factory;%0A%0Aimport java.io.File;%0Aimport java.net.MalformedURLException;%0Aimport java.net.URI;%0Aimport java.net.URL;%0A%0Aimport org.apache.commons.lang.NullArgumentException;%0Aimport org.apache.commons.lang3.StringUtils;%0A%0Aimport file.FileParser;%0A%0Apublic class Parser extends FactoryParser %7B%0A%0A    public InterfaceParser create() %7B%0A        return new IndividualParser(null, null, new File(%22piyo%22));%0A    %7D%0A%0A    public Parser() %7B%7D%0A%0A    public class IndividualParser implements InterfaceParser %7B%0A        @Override%0A        public void parser() %7B%0A            FileParser parser = new FileParser(file.getPath(), 0);%0A            parser.parse(file);%0A        %7D%0A%0A        public IndividualParser(URI uri, URL url, File file) %7B%0A            if (uri != null) %7B%0A                setUri(uri);%0A            %7D%0A            if (url != null) %7B%0A                serUrl(url);%0A            %7D%0A            if (file != null) %7B%0A                setFile(file);%0A            %7D%0A            raterValidation();%0A        %7D%0A    %7D%0A%0A    @Override%0A    protected void setUri(URI uri) %7B%0A        super.uri = uri;%0A    %7D%0A%0A    @Override%0A    protected void serUrl(URL url) %7B%0A        super.url = url;%0A    %7D%0A%0A    @Override%0A    protected void setFile(File file) %7B%0A        super.file = file;%0A    %7D%0A%0A    private boolean raterValidation() %7B%0A        final boolean nullPointerException = super.uri == null %7C%7C super.url == null %7C%7C super.file == null;%0A        if (nullPointerException)%0A            throw new NullArgumentException(%22uri and url, file%22);%0A%0A        boolean illegalArgumentException = false;%0A        try %7B%0A            illegalArgumentException = !super.uri.toURL().equals(url)%0A                    %7C%7C StringUtils.isBlank(super.url.getFile())%0A                    %7C%7C !file.exists()%0A                    %7C%7C !file.isFile();%0A        %7D catch (MalformedURLException e) %7B%0A            System.out.println(e.getMessage());%0A        %7D finally %7B%0A            if (illegalArgumentException)%0A                throw new IllegalArgumentException();%0A        %7D%0A        return true;%0A    %7D%0A%7D%0A

Create Parser.java