Add skeleton code for SvgParser

pull/35/head
James Ball 2020-10-20 20:38:38 +01:00
rodzic edafa0028f
commit 5e13ea4595
2 zmienionych plików z 28 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,11 @@
package parser;
import java.util.List;
import shapes.Shape;
public interface FileParser {
String getFileExtension();
List<? extends Shape> parseFile(String path);
}

Wyświetl plik

@ -0,0 +1,17 @@
package parser;
import java.util.List;
import shapes.Shape;
public class SvgParser implements FileParser {
@Override
public String getFileExtension() {
return ".svg";
}
@Override
public List<? extends Shape> parseFile(String path) {
return null;
}
}