(char c)
| 1473 | } |
| 1474 | |
| 1475 | public static byte decodeByte(char c) { |
| 1476 | if (c > '\\') { |
| 1477 | return (byte) (c - ' ' - 2); |
| 1478 | } else if (c > '"') { |
| 1479 | return (byte) (c - ' ' - 1); |
| 1480 | } else { |
| 1481 | return (byte) (c - ' '); |
| 1482 | } |
| 1483 | } |
| 1484 | |
| 1485 | public static String compressRle(byte[] bytes) { |
| 1486 | StringBuilder sb = new StringBuilder(); |