| 558 | } |
| 559 | |
| 560 | private static final class StatusCodeMarshaller implements TrustedAsciiMarshaller<Status> { |
| 561 | @Override |
| 562 | public byte[] toAsciiString(Status status) { |
| 563 | return status.getCode().valueAscii(); |
| 564 | } |
| 565 | |
| 566 | @Override |
| 567 | public Status parseAsciiString(byte[] serialized) { |
| 568 | return fromCodeValue(serialized); |
| 569 | } |
| 570 | } |
| 571 | |
| 572 | private static final class StatusMessageMarshaller implements TrustedAsciiMarshaller<String> { |
| 573 |
nothing calls this directly
no outgoing calls
no test coverage detected