(byte[] buf, int off)
| 201 | } |
| 202 | |
| 203 | public static int getWordBE(byte[] buf, int off) { |
| 204 | int val = (((int) buf[off]) << 8) & 0x0000FF00; |
| 205 | return val | (((int) buf[++off])) & 0x000000FF; |
| 206 | } |
| 207 | |
| 208 | /* Divide text to array of parts using separator character */ |
| 209 | static public String[] explode(String text, char separator) { |