@NotThreadSafe public class ResourceStreamSource extends StreamSource
StreamSource implementation that reads from
IReadableResource or IHasInputStream objects. The system ID
of the stream source is automatically determined from the resource or can be
manually passed in.FEATURE| Constructor and Description |
|---|
ResourceStreamSource(com.helger.commons.io.IHasInputStream aISP,
String sSystemID) |
ResourceStreamSource(com.helger.commons.io.resource.IReadableResource aResource) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream() |
com.helger.commons.io.IHasInputStream |
getInputStreamProvider() |
String |
toString() |
getPublicId, getReader, getSystemId, setInputStream, setPublicId, setReader, setSystemId, setSystemIdpublic ResourceStreamSource(@Nonnull com.helger.commons.io.resource.IReadableResource aResource)
@Nonnull public com.helger.commons.io.IHasInputStream getInputStreamProvider()
public InputStream getInputStream()
getInputStream in class StreamSourceCopyright © 2014–2017 Philip Helger. All rights reserved.