Class IOElementPipe
- java.lang.Object
-
- org.wso2.carbon.mediator.transform.stream.IOElementPipe
-
public class IOElementPipe extends Object
This class populates XML events from the OMElement and write to an OutputStream. The written events are returned as a byte array when requested.
-
-
Constructor Summary
Constructors Constructor Description IOElementPipe(org.apache.axiom.om.OMElement element)
Constructor which create IOElementPipe object with an OMElement object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeConnections()
Close the opened connectionsbyte[]
getData(int count, int off)
Copy data from outputStream to a byte array.
-
-
-
Constructor Detail
-
IOElementPipe
public IOElementPipe(org.apache.axiom.om.OMElement element) throws XMLStreamException, FactoryConfigurationError
Constructor which create IOElementPipe object with an OMElement object.- Parameters:
element
- OMElement object- Throws:
XMLStreamException
FactoryConfigurationError
-
-
Method Detail
-
getData
public final byte[] getData(int count, int off) throws XMLStreamException
Copy data from outputStream to a byte array.- Parameters:
count
- Number of bytes requested to readoff
- Stating point of byte array to copy data- Returns:
- byte array containing written events
- Throws:
XMLStreamException
FactoryConfigurationError
-
closeConnections
public void closeConnections() throws XMLStreamException, IOException
Close the opened connections- Throws:
XMLStreamException
IOException
-
-