Class XpathParserUtil
- java.lang.Object
-
- org.gcube.spatial.data.geoutility.util.XpathParserUtil
-
public class XpathParserUtil extends Object
The Class XpathParserUtil.- Author:
- Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it Jan 21, 2016
-
-
Constructor Summary
Constructors Constructor Description XpathParserUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String>getTextFromXPathExpression(NamespaceContextMap context, InputStream source, String xpathExpression)Gets the text from x path expression.static List<String>getTextFromXPathExpression(NamespaceContextMap context, String source, String xpathExpression)Gets the text from x path expression.static InputStreamstringToInputStream(String text)String to input stream.
-
-
-
Method Detail
-
getTextFromXPathExpression
public static List<String> getTextFromXPathExpression(NamespaceContextMap context, InputStream source, String xpathExpression)
Gets the text from x path expression.- Parameters:
context- the contextsource- the sourcexpathExpression- the xpath expression- Returns:
- the text from x path expression
-
getTextFromXPathExpression
public static List<String> getTextFromXPathExpression(NamespaceContextMap context, String source, String xpathExpression)
Gets the text from x path expression.- Parameters:
context- the contextsource- the sourcexpathExpression- the xpath expression- Returns:
- the text from x path expression
-
stringToInputStream
public static InputStream stringToInputStream(String text)
String to input stream.- Parameters:
text- the text- Returns:
- the input stream
-
-