org.apache.camel
Class BytesSource

java.lang.Object
  extended by javax.xml.transform.stream.StreamSource
      extended by org.apache.camel.BytesSource
All Implemented Interfaces:
Serializable, Source

public class BytesSource
extends StreamSource
implements Serializable

A helper class which provides a JAXP Source from a byte[] which can be read as many times as required.

Version:
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.xml.transform.stream.StreamSource
FEATURE
 
Constructor Summary
BytesSource(byte[] data)
           
BytesSource(byte[] data, String systemId)
           
 
Method Summary
 byte[] getData()
           
 InputStream getInputStream()
           
 Reader getReader()
           
 String toString()
           
 
Methods inherited from class javax.xml.transform.stream.StreamSource
getPublicId, getSystemId, setInputStream, setPublicId, setReader, setSystemId, setSystemId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BytesSource

public BytesSource(byte[] data)

BytesSource

public BytesSource(byte[] data,
                   String systemId)
Method Detail

getInputStream

public InputStream getInputStream()
Overrides:
getInputStream in class StreamSource

getReader

public Reader getReader()
Overrides:
getReader in class StreamSource

getData

public byte[] getData()

toString

public String toString()
Overrides:
toString in class Object


Apache Camel