Class ElementInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.wso2.carbon.mediator.transform.stream.ElementInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ElementInputStream extends InputStream
This class extends from InputStream. The data is retrieved from the IOElementPipe when reading from this class.
-
-
Constructor Summary
Constructors Constructor Description ElementInputStream(IOElementPipe pipe)
Constructor which creates ElementInputStream object with IOElementPipe object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
read()
int
read(byte[] b, int off, int len)
Read data to byte array by getting data from pipe.-
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
ElementInputStream
public ElementInputStream(IOElementPipe pipe)
Constructor which creates ElementInputStream object with IOElementPipe object.- Parameters:
pipe
-
-
-
Method Detail
-
read
public int read(byte[] b, int off, int len)
Read data to byte array by getting data from pipe.- Overrides:
read
in classInputStream
-
read
public int read() throws IOException
- Specified by:
read
in classInputStream
- Throws:
IOException
-
-