org.apache.servicemix.jbi.jaxp
Class ResourceSource

java.lang.Object
  extended by javax.xml.transform.stream.StreamSource
      extended by org.apache.servicemix.jbi.jaxp.ResourceSource
All Implemented Interfaces:
javax.xml.transform.Source

public class ResourceSource
extends javax.xml.transform.stream.StreamSource

A JAXP StreamSource which uses a Spring Resource as the source of the input stream. This implementation is re-entrant and can be used as many times as required to parse XML.

Version:
$Revision: 564607 $

Field Summary
 
Fields inherited from class javax.xml.transform.stream.StreamSource
FEATURE
 
Constructor Summary
ResourceSource(org.springframework.core.io.Resource resource)
           
 
Method Summary
 java.io.InputStream getInputStream()
           
 java.io.Reader getReader()
           
 
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, toString, wait, wait, wait
 

Constructor Detail

ResourceSource

public ResourceSource(org.springframework.core.io.Resource resource)
Method Detail

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


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.