Checks if the specified token is a valid NCName. @param value value to be checked @return result of check
(final byte[] value)
| 186 | * @return result of check |
| 187 | */ |
| 188 | public static boolean isNCName(final byte[] value) { |
| 189 | final int vl = value.length; |
| 190 | return vl != 0 && ncName(value, 0) == vl; |
| 191 | } |
| 192 | |
| 193 | /** |
| 194 | * Checks if the specified token is a valid name. |