Skip to Content

required .jar file for mapping

Hi All,

can anyone provide the .jar file for the below code, i have NWDS 6 version.. but for SAP PI 7.1 jat file should import from which is having jdk version 1.5..

below is the code

import java.io.*;
import com.sap.aii.mapping.api.*;
public class Test_JavaMapping extends AbstractTransformation {
    @Override
    public void transform(TransformationInput transformationInput, TransformationOutput transformationOutput) throws StreamTransformationException {
        try {
            InputStream inputstream = transformationInput.getInputPayload().getInputStream();
            OutputStream outputstream = transformationOutput.getOutputPayload().getOutputStream();
            // Copy Input content to Output content  
            byte[] b = new byte[inputstream.available()];
            inputstream.read(b);
            String input = new String(b);
            input = input.replaceAll("__", ":");
            outputstream.write(input.getBytes());
        } catch (Exception exception) {
            getTrace().addDebugMessage(exception.getMessage());
            throw new StreamTransformationException(exception.toString());
        }
    }

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Dec 29, 2016 at 09:31 AM
    Add comment
    10|10000 characters needed characters exceeded

  • Dec 29, 2016 at 11:50 AM

    Hi Nikhil,

    what will be the procedure after getting these files and how can i insert my code into that?

    could you please guide me?

    Regards,

    Janardhan

    Add comment
    10|10000 characters needed characters exceeded