code: public final <T> T fromInputStream(InputStream inputStream, Class<T> destinationClass)
        throws IOException {
      return createJsonParser(inputStream).parseAndClose(destinationClass);
    }
docs: Parse and close an input stream as a JSON object, array, or value into a new instance of the
  given destination class using {@link JsonParser#parseAndClose(Class)}.
  
  <p>Tries to detect the charset of the input stream automatically.
  
  @param inputStream JSON value in an input stream
  @param destinationClass destination class that has an accessible default constructor to use to
  create a new instance
  @return new instance of the parsed destination class
  @since 1.7