1 package eu.svjatoslav.sixth.core.document;
3 import eu.svjatoslav.commons.string.tokenizer.InvalidSyntaxException;
6 import java.io.IOException;
8 import static eu.svjatoslav.commons.file.IOHelper.getFileContentsAsString;
10 public class OrgParser {
12 private Document document;
14 public Document parse(File file) throws IOException, InvalidSyntaxException {
15 document = new Document();
17 String fileContentsAsString = getFileContentsAsString(file);
19 document.parse(fileContentsAsString);