// Path: src/main/java/com/orgzly/org/OrgFile.java
// public class OrgFile {
// 
//     /** In-buffer settings. */
//     private OrgFileSettings settings;
// 
//     /** Text before the first heading. */
//     private String preface;
// 
//     public OrgFile() {
// 	}
// 
//     public OrgFileSettings getSettings() {
//         if (settings == null) {
//             settings = new OrgFileSettings();
//         }
//         return settings;
//     }
// 
//     /**
//      * @return Text before first {@link OrgHead} in the file.
//      */
//     public String getPreface() {
//         return preface != null ? preface : "";
//     }
// 
//     public void setPreface(String str) {
//         preface = str;
//     }
// 
//     public String toString() {
// 		return OrgFile.class.getSimpleName() + "[" + preface.length() + "]";
// 	}
// }


import com.orgzly.org.OrgFile;
import java.io.IOException;
package com.orgzly.org.parser;



public interface OrgSaxyParserListener {
    /**
     * Called for each new heading found.
     *
     * @param node Node in list.
     * @throws IOException Exception throws on error
     */
    void onHead(OrgNodeInList node) throws IOException;

    /**
     * Called last, after everything has been parsed.
     *
     * @param file File
     * @throws IOException Exception throws on error
     */
// Path: src/main/java/com/orgzly/org/OrgFile.java
// public class OrgFile {
// 
//     /** In-buffer settings. */
//     private OrgFileSettings settings;
// 
//     /** Text before the first heading. */
//     private String preface;
// 
//     public OrgFile() {
// 	}
// 
//     public OrgFileSettings getSettings() {
//         if (settings == null) {
//             settings = new OrgFileSettings();
//         }
//         return settings;
//     }
// 
//     /**
//      * @return Text before first {@link OrgHead} in the file.
//      */
//     public String getPreface() {
//         return preface != null ? preface : "";
//     }
// 
//     public void setPreface(String str) {
//         preface = str;
//     }
// 
//     public String toString() {
// 		return OrgFile.class.getSimpleName() + "[" + preface.length() + "]";
// 	}
// }


// Path: src/main/java/com/orgzly/org/parser/OrgSaxyParserListener.java
import com.orgzly.org.OrgFile;
import java.io.IOException;

package com.orgzly.org.parser;



public interface OrgSaxyParserListener {
    /**
     * Called for each new heading found.
     *
     * @param node Node in list.
     * @throws IOException Exception throws on error
     */
    void onHead(OrgNodeInList node) throws IOException;

    /**
     * Called last, after everything has been parsed.
     *
     * @param file File
     * @throws IOException Exception throws on error
     */
    void onFile(OrgFile file) throws IOException;