Compares a substring of the buffer with the given command string. @param buf the buffer to search @param index the starting index @param command the command string to match @return true if the substring matches the command
(String buf, int index, String command)
| 363 | * @return true if the substring matches the command |
| 364 | */ |
| 365 | protected boolean charCmp(String buf, int index, String command) { |
| 366 | return buf.regionMatches(index, command, 0, command.length()); |
| 367 | } |
| 368 | |
| 369 | |
| 370 | /** |