public class BytesSource extends StreamSource implements Serializable
Source
from a byte[] which can be read as many times as required.FEATURE
Constructor and Description |
---|
BytesSource(byte[] data) |
BytesSource(byte[] data,
String systemId) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getData() |
InputStream |
getInputStream() |
Reader |
getReader() |
String |
toString() |
getPublicId, getSystemId, setInputStream, setPublicId, setReader, setSystemId, setSystemId
public BytesSource(byte[] data)
public BytesSource(byte[] data, String systemId)
public InputStream getInputStream()
getInputStream
in class StreamSource
public Reader getReader()
getReader
in class StreamSource
public byte[] getData()
Apache Camel