![JAR search and dependency download from the Maven repository](/logo.png)
com.legstar.mq.mqcih.bind.MqcihHostToJavaTransformer Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (c) 2010 LegSem.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v2.1
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
* Contributors:
* LegSem - initial API and implementation
******************************************************************************/
package com.legstar.mq.mqcih.bind;
import com.legstar.coxb.CobolContext;
import com.legstar.coxb.ICobolComplexBinding;
import com.legstar.coxb.transform.AbstractHostToJavaTransformer;
import com.legstar.coxb.CobolBindingException;
/**
* Transforms mainframe data to a Mqcih data object.
*
* This is a typical use of this class:
*
* MqcihHostToJavaTransformer transformer = new MqcihHostToJavaTransformer();
* Mqcih javaValue = (Mqcih) transformer.transform(hostByteArray);
*
*
*/
public class MqcihHostToJavaTransformer extends AbstractHostToJavaTransformer {
/**
* Create a Host to Java transformer using default COBOL parameters.
*/
public MqcihHostToJavaTransformer() {
super();
}
/**
* Create a Host to Java transformer using a specific COBOL parameters set.
* @param cobolContext the COBOL parameters set.
*/
public MqcihHostToJavaTransformer(final CobolContext cobolContext) {
super(cobolContext);
}
/**
* Create a Host to Java transformer using a specific host character set while
* other COBOL parameters are set by default.
* @param hostCharset the host character set
*/
public MqcihHostToJavaTransformer(final String hostCharset) {
super(hostCharset);
}
/**
* Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}.
* @return the binding corresponding to the host structure type.
* @throws CobolBindingException if binding cannot be returned
*/
public ICobolComplexBinding getBinding() throws CobolBindingException {
return new MqcihBinding();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy