public interface Codec<T>
| Modifier and Type | Method and Description |
|---|---|
T |
fromBytes(byte[] bytes) |
T |
readBytes(InputStream input) |
byte[] |
toBytes(T instance) |
void |
writeBytes(OutputStream output,
T instance) |
byte[] toBytes(T instance)
T fromBytes(byte[] bytes)
void writeBytes(OutputStream output, T instance)
T readBytes(InputStream input)
Copyright © 2010–2024 Airlift. All rights reserved.