Checks if the first token starts with the specified character. @param token token @param ch character to be bound @return result of check
(final byte[] token, final int ch)
| 959 | * @return result of check |
| 960 | */ |
| 961 | public static boolean endsWith(final byte[] token, final int ch) { |
| 962 | return token.length != 0 && token[token.length - 1] == ch; |
| 963 | } |
| 964 | |
| 965 | /** |
| 966 | * Checks if the first token ends with the second token. |
no outgoing calls