drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/editors/completion/DSLTree.java
protected void parseFile(BufferedReader reader) {
        String line = null;
        try {
            while ( (line = reader.readLine()) != null) {
                Section section = getSection(line);
                String nl = stripHeadingAndCode(line);
                String objname = this.getObjMetadata(nl);
                nl = this.stripObjMetadata(nl);
                addEntry(section, nl, objname);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
protected void parseFile(BufferedReader reader) {
        String line = null;
        try {
            while ( (line = reader.readLine()) != null) {
                Section section = getSection(line);
                String nl = stripHeadingAndCode(line);
                String objname = this.getObjMetadata(nl);
                nl = this.stripObjMetadata(nl);
                addEntry(section, nl, objname);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
protected void parseFile ( BufferedReader reader ) { String line = null ; try { while ( ( line = reader . readLine ( ) ) != null ) { Section section = getSection ( line ) ; String nl = stripHeadingAndCode ( line ) ; String objname = this . getObjMetadata ( nl ) ; nl = this . stripObjMetadata ( nl ) ; addEntry ( section , nl , objname ) ; } } catch ( IOException e ) { e . printStackTrace ( ) ; } }
method will use the BufferedReader to read the contents of the file.
It calls other methods to parse the line and build the tree.
@param reader
method will use the BufferedReader to read the contents of the file . It calls other methods to parse the line and build the tree .