Finds the prefix for the specified URI. @param uri namespace URI @return prefix, or empty string
(final byte[] uri)
| 120 | * @return prefix, or empty string |
| 121 | */ |
| 122 | public static byte[] prefix(final byte[] uri) { |
| 123 | final byte[] prefix = PREFIXES.get(uri); |
| 124 | return prefix != null ? prefix : EMPTY; |
| 125 | } |
| 126 | |
| 127 | /** |
| 128 | * Checks if the specified URI is a reserved namespace. |
no test coverage detected