ByteCodec.java 206 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 package com.diligrp.cashier.shared.codec; import java.io.IOException; public interface ByteCodec<T> { T decode(byte[] payload) throws IOException; byte[] encode(T payload) throws IOException; }