Class JSONInputReader
- java.lang.Object
-
- org.wso2.carbon.mediator.datamapper.engine.input.readers.JSONInputReader
-
- All Implemented Interfaces:
InputReader
public class JSONInputReader extends Object implements InputReader
This class is capable of parsing XML through AXIOMS for the InputStream and build the respective JSON message
-
-
Constructor Summary
Constructors Constructor Description JSONInputReader()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
read(InputStream input, Schema inputSchema, InputBuilder messageBuilder)
Read, parse the XML and notify with the output JSON message
-
-
-
Constructor Detail
-
JSONInputReader
public JSONInputReader() throws IOException
Constructor- Throws:
IOException
-
-
Method Detail
-
read
public void read(InputStream input, Schema inputSchema, InputBuilder messageBuilder) throws ReaderException
Read, parse the XML and notify with the output JSON message- Specified by:
read
in interfaceInputReader
- Parameters:
input
- XML message InputStreaminputSchema
- Schema of the input messagemessageBuilder
- Reference of the InputXMLMessageBuilder- Throws:
ReaderException
- Exceptions in the parsing stage
-
-