public class XpathParserUtil extends Object
Constructor and Description |
---|
XpathParserUtil() |
Modifier and Type | Method and 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 void |
main(String[] args)
The main method.
|
static InputStream |
stringToInputStream(String text)
String to input stream.
|
public static List<String> getTextFromXPathExpression(NamespaceContextMap context, InputStream source, String xpathExpression)
context
- the contextsource
- the sourcexpathExpression
- the xpath expressionpublic static List<String> getTextFromXPathExpression(NamespaceContextMap context, String source, String xpathExpression)
context
- the contextsource
- the sourcexpathExpression
- the xpath expressionpublic static InputStream stringToInputStream(String text)
text
- the textpublic static void main(String[] args) throws IOException
args
- the argumentsIOException
- Signals that an I/O exception has occurred.Copyright © 2016. All Rights Reserved.