| Constructor and Description |
|---|
Paths() |
| Modifier and Type | Method and Description |
|---|---|
static Set<String> |
getNamespaces(Path path)
Returns the namespace URIs found in the given XML file
|
static boolean |
hasNamespace(Path file,
String... namespaceURis)
Returns true if the file can be parsed as XML and it contains one of the given namespace URs
|
public static boolean hasNamespace(Path file, String... namespaceURis)
public static Set<String> getNamespaces(Path path) throws IOException, ParserConfigurationException, SAXException
Copyright © 2011–2014 Red Hat. All rights reserved.