code: public <T> T read(byte[] input, Class<T> rootType) {
          if (input == null) {
              throw new NullPointerException("input");
          }
          return read(new ByteArrayInputStream(input), rootType);
      }
docs: Reads and parses to a bean.
  
  @param <T>  the root type
  @param input  the input bytes, not null
  @param rootType  the root type, not null
  @return the bean, not null