Stuart McCulloch | bb01437 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 1 | package aQute.lib.codec; |
2 | |||||
3 | import java.io.*; | ||||
4 | import java.lang.reflect.*; | ||||
5 | |||||
6 | public interface Codec { | ||||
Stuart McCulloch | 2286f23 | 2012-06-15 13:27:53 +0000 | [diff] [blame] | 7 | Object decode(Reader in, Type type) throws Exception; |
8 | |||||
Stuart McCulloch | bb01437 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 9 | void encode(Type t, Object o, Appendable out) throws Exception; |
10 | } |