Package com.helger.xml.transform
Class ResourceStreamSource
- java.lang.Object
-
- javax.xml.transform.stream.StreamSource
-
- com.helger.xml.transform.ResourceStreamSource
-
- All Implemented Interfaces:
Source
@NotThreadSafe public class ResourceStreamSource extends StreamSource
SpecialStreamSourceimplementation that reads fromIReadableResourceorIHasInputStreamobjects. The system ID of the stream source is automatically determined from the resource or can be manually passed in.- Author:
- Philip Helger
-
-
Field Summary
-
Fields inherited from class javax.xml.transform.stream.StreamSource
FEATURE
-
-
Constructor Summary
Constructors Constructor Description ResourceStreamSource(com.helger.commons.io.IHasInputStream aISP, String sSystemID)ResourceStreamSource(com.helger.commons.io.resource.IReadableResource aResource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetInputStream()com.helger.commons.io.IHasInputStreamgetInputStreamProvider()StringtoString()-
Methods inherited from class javax.xml.transform.stream.StreamSource
getPublicId, getReader, getSystemId, isEmpty, setInputStream, setPublicId, setReader, setSystemId, setSystemId
-
-
-
-
Method Detail
-
getInputStreamProvider
@Nonnull public com.helger.commons.io.IHasInputStream getInputStreamProvider()
-
getInputStream
public InputStream getInputStream()
- Overrides:
getInputStreamin classStreamSource
-
-