kopia lustrzana https://github.com/jameshball/osci-render
Add skeleton code for SvgParser
rodzic
edafa0028f
commit
5e13ea4595
|
@ -0,0 +1,11 @@
|
|||
package parser;
|
||||
|
||||
import java.util.List;
|
||||
import shapes.Shape;
|
||||
|
||||
public interface FileParser {
|
||||
|
||||
String getFileExtension();
|
||||
|
||||
List<? extends Shape> parseFile(String path);
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
Ładowanie…
Reference in New Issue