@@ -0,0 +1,1942 @@
+package org.editorconfig.core;%0A%0Aimport javax.script.ScriptEngine;%0Aimport javax.script.ScriptEngineFactory;%0Aimport javax.script.ScriptEngineManager;%0Aimport javax.script.ScriptException;%0Aimport java.util.List;%0Aimport java.util.LinkedList;%0A%0A%0Apublic class EditorConfig %7B%0A%0A    private ScriptEngine jythonEngine;%0A%0A    public class OutPair %7B%0A        private String key;%0A        private String val;%0A        %0A        OutPair(String key, String val) %7B%0A            this.key = key;%0A            this.val = val;%0A        %7D%0A        %0A        public String getKey() %7B%0A            return this.key;%0A        %7D%0A        %0A        public String getVal() %7B%0A            return this.val;%0A        %7D%0A    %7D%0A%0A    // Constructor%0A    EditorConfig()%0A            throws ScriptException %7B%0A        ScriptEngineManager manager = new ScriptEngineManager();%0A%0A        jythonEngine = manager.getEngineByName(%22python%22);%0A%0A        jythonEngine.eval(%22from editorconfig import get_properties%22);%0A        jythonEngine.eval(%22from editorconfig import exceptions%22);%0A    %7D%0A    %0A    /**%0A     * Get EditorConfig properties%0A     */%0A    public List%3COutPair%3E getProperties(String filename)%0A            throws ScriptException %7B%0A%0A        jythonEngine.eval(%22options = get_properties('%22 + filename + %22')%22);%0A        jythonEngine.eval(%22option_count = len(options)%22);%0A        jythonEngine.eval(%22option_items = options.items()%22);%0A %0A        LinkedList%3COutPair%3E retList = new LinkedList%3COutPair%3E();%0A        int count = Integer.parseInt(jythonEngine.get(%22option_count%22).toString());%0A        for(int i = 0; i %3C count; ++i) %7B%0A            jythonEngine.eval(%22option_key = option_items%5B%22 + i + %22%5D%5B0%5D%22);%0A            jythonEngine.eval(%22option_item = option_items%5B%22 + i + %22%5D%5B1%5D%22);%0A            OutPair op = new OutPair(%0A                    jythonEngine.get(%22option_key%22).toString(),%0A                    jythonEngine.get(%22option_item%22).toString());%0A%0A            retList.add(op);%0A        %7D%0A%0A        return retList;%0A    %7D%0A%7D%0A

Build the basic EditorConfig java api.