Search in sources :

Example 1 with Copybook

use of com.twinsoft.convertigo.engine.util.Copybook in project convertigo by convertigo.

the class CicsTransaction method importCopyBook.

public void importCopyBook(boolean isInput, Reader reader) throws EngineException {
    try {
        XMLVector<XMLVector<Object>> cblMap = null;
        Copybook cpbk = new Copybook();
        if (cpbk != null)
            cblMap = cpbk.importFromFile2(reader);
        if (cblMap != null) {
            this.hasChanged = true;
            if (isInput)
                setInputMap(cblMap);
            else
                setOutputMap(cblMap);
        }
    } catch (IOException e) {
        throw new EngineException(e.getMessage());
    }
}
Also used : XMLVector(com.twinsoft.convertigo.beans.common.XMLVector) Copybook(com.twinsoft.convertigo.engine.util.Copybook) EngineException(com.twinsoft.convertigo.engine.EngineException) IOException(java.io.IOException)

Aggregations

XMLVector (com.twinsoft.convertigo.beans.common.XMLVector)1 EngineException (com.twinsoft.convertigo.engine.EngineException)1 Copybook (com.twinsoft.convertigo.engine.util.Copybook)1 IOException (java.io.IOException)1