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

com.legstar.mq.mqcih.bind.MqcihJavaToHostTransformer Maven / Gradle / Ivy

The newest version!
/*******************************************************************************
 * 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.AbstractJavaToHostTransformer;
import com.legstar.coxb.CobolBindingException;

/**
 * Transforms a Mqcih data object to mainframe data.
 * 

* This is a typical use of this class: *

 *  MqcihJavaToHostTransformer transformer = new MqcihJavaToHostTransformer();
 *  byte[] hostByteArray = transformer.transform(javaValue);
 * 
* */ public class MqcihJavaToHostTransformer extends AbstractJavaToHostTransformer { /** * Create a Java to Host transformer using default COBOL parameters. */ public MqcihJavaToHostTransformer() { super(); } /** * Create a Java to Host transformer using a specific COBOL parameters set. * @param cobolContext the COBOL parameters set. */ public MqcihJavaToHostTransformer(final CobolContext cobolContext) { super(cobolContext); } /** * Create a Java to Host transformer using a specific host character set while * other COBOL parameters are set by default. * @param hostCharset the host character set */ public MqcihJavaToHostTransformer(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