org.apache.servicemix.jbi.jaxp
Class BytesSource
java.lang.Object
javax.xml.transform.stream.StreamSource
org.apache.servicemix.jbi.jaxp.BytesSource
- All Implemented Interfaces:
- javax.xml.transform.Source
public class BytesSource
- extends javax.xml.transform.stream.StreamSource
A helper class which provides a JAXP Source
from a byte[]
which can be read as many times as required.
- Version:
- $Revision: 564607 $
Fields inherited from class javax.xml.transform.stream.StreamSource |
FEATURE |
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 |
BytesSource
public BytesSource(byte[] data)
BytesSource
public BytesSource(byte[] data,
java.lang.String systemId)
getInputStream
public java.io.InputStream getInputStream()
- Overrides:
getInputStream
in class javax.xml.transform.stream.StreamSource
getReader
public java.io.Reader getReader()
- Overrides:
getReader
in class javax.xml.transform.stream.StreamSource
getData
public byte[] getData()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.