(DataInput in)
| 358 | } |
| 359 | |
| 360 | private PlainTime readTime(DataInput in) |
| 361 | throws IOException { |
| 362 | |
| 363 | int hour = in.readByte(); |
| 364 | |
| 365 | if (hour < 0) { |
| 366 | return PlainTime.of(~hour); |
| 367 | } else { |
| 368 | int second = 0, nano = 0; |
| 369 | int minute = in.readByte(); |
| 370 | |
| 371 | if (minute < 0) { |
| 372 | minute = ~minute; |
| 373 | } else { |
| 374 | second = in.readByte(); |
| 375 | |
| 376 | if (second < 0) { |
| 377 | second = ~second; |
| 378 | } else { |
| 379 | nano = in.readInt(); |
| 380 | } |
| 381 | } |
| 382 | |
| 383 | return PlainTime.of(hour, minute, second, nano); |
| 384 | } |
| 385 | |
| 386 | } |
| 387 | |
| 388 | private void writeWeekmodel(DataOutput out) |
| 389 | throws IOException { |
no test coverage detected