Package com.helger.xml.sax
Class ReadableResourceSAXInputSource
- java.lang.Object
-
- org.xml.sax.InputSource
-
- com.helger.xml.sax.ReadableResourceSAXInputSource
-
public class ReadableResourceSAXInputSource extends InputSource
SpecialInputSourceimplementation 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
-
-
Constructor Summary
Constructors Constructor Description ReadableResourceSAXInputSource(com.helger.commons.io.IHasInputStream aISP, String sSystemID)ReadableResourceSAXInputSource(com.helger.commons.io.resource.IReadableResource aResource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetByteStream()com.helger.commons.io.IHasInputStreamgetInputStreamProvider()StringtoString()-
Methods inherited from class org.xml.sax.InputSource
getCharacterStream, getEncoding, getPublicId, getSystemId, isEmpty, setByteStream, setCharacterStream, setEncoding, setPublicId, setSystemId
-
-
-
-
Constructor Detail
-
ReadableResourceSAXInputSource
public ReadableResourceSAXInputSource(@Nonnull com.helger.commons.io.resource.IReadableResource aResource)
-
-
Method Detail
-
getInputStreamProvider
@Nonnull public final com.helger.commons.io.IHasInputStream getInputStreamProvider()
-
getByteStream
public InputStream getByteStream()
- Overrides:
getByteStreamin classInputSource
-
-