All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.altova.text.tablelike.RecordBasedParser Maven / Gradle / Ivy

////////////////////////////////////////////////////////////////////////
//
// RecordBasedParser.java
//
// This file was generated by MapForce 2017sp2.
//
// YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
// OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
//
// Refer to the MapForce Documentation for further details.
// http://www.altova.com/mapforce
//
////////////////////////////////////////////////////////////////////////

package com.altova.text.tablelike;

public abstract class RecordBasedParser {
    private IRecordBasedParserObserver m_Observer = null;

    public IRecordBasedParserObserver getObserver() {
        return m_Observer;
    }

    public void setObserver(IRecordBasedParserObserver rhs) {
        m_Observer = rhs;
    }

    public abstract int parse(String buffer) throws MappingException;

    protected void notifyAboutRecordFound(String[] fields) {
        if (null != m_Observer)
            m_Observer.notifyAboutRecordFound(new Record(fields));
    }

    protected void notifyAboutRecordFound(StringList fields) {
        if (null != m_Observer)
            m_Observer.notifyAboutRecordFound(new Record(fields));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy