Add read(byte[] bytes, int off, int len, Class<T> c) method