public class StreamOpaqueResource extends StringOpaqueResource
the optimization consists of postponing the parsing as possibly and parse the profile passing the stream directly to the xml parser.
TODO: implement the optimization, currenly converts to string and reuses StringOpaqueResource
Constructor and Description |
---|
StreamOpaqueResource(InputStream source)
construct with an input stream.
|
asDom, asString, getDom, getModificationDate, getResourceId, getResourceKind, getResourceType, getResourceUri, getTransformer, setDom, setModificationDate, setResourceId, setResourceKind, setResourceType, setResourceUri, setTransformer
public StreamOpaqueResource(InputStream source) throws XPathExpressionException, SAXException, IOException, ParserConfigurationException
source
- source stream of xml textXPathExpressionException
- shouldn't happenSAXException
- could happenIOException
- could happenParserConfigurationException
- shouldn't happenCopyright © 2019. All rights reserved.