(int b)
| 291 | } |
| 292 | |
| 293 | private static long |
| 294 | parseLOCformat(int b) throws WireParseException { |
| 295 | long out = b >> 4; |
| 296 | int exp = b & 0xF; |
| 297 | if (out > 9 || exp > 9) |
| 298 | throw new WireParseException("Invalid LOC Encoding"); |
| 299 | while (exp-- > 0) |
| 300 | out *= 10; |
| 301 | return (out); |
| 302 | } |
| 303 | |
| 304 | private int |
| 305 | toLOCformat(long l) { |