public class DataSourceDOM extends Object implements DataSource
This DataSource allows to extract data from an XML DOM tree and simulate an inputstream so that a low level parser can parse the content using the common DataStreamParser interface.
Modifier and Type | Field and Description |
---|---|
protected DOMHelper |
dom |
protected Element |
parentElt |
Constructor and Description |
---|
DataSourceDOM(DOMHelper dom,
Element parentElt) |
Modifier and Type | Method and Description |
---|---|
InputStream |
getDataStream()
Gets the right input stream from href or inline values
|
DOMHelper |
getDom() |
Element |
getParentElt() |
public DOMHelper getDom()
public Element getParentElt()
public InputStream getDataStream() throws IOException
getDataStream
in interface InputStreamProvider
IOException
Copyright © 2016 Sensia Software LLC. All rights reserved.