public class Paths
extends java.lang.Object
Path| Constructor and Description |
|---|
Paths() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Set<java.lang.String> |
getNamespaces(java.nio.file.Path path)
Returns the namespace URIs found in the given XML file
|
static boolean |
hasNamespace(java.nio.file.Path file,
java.lang.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(java.nio.file.Path file,
java.lang.String... namespaceURis)
public static java.util.Set<java.lang.String> getNamespaces(java.nio.file.Path path)
throws java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
java.io.IOExceptionjavax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXExceptionCopyright © 2011-2014 Red Hat. All Rights Reserved.