Java String Decode decode(String s, Class clazz)

Here you can find the source of decode(String s, Class clazz)

Description

decode

License

Open Source License

Declaration

public static <T> T decode(String s, Class<T> clazz) throws IOException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;

public class Main {
    private static final ObjectMapper objectMapper = new ObjectMapper();

    public static <T> T decode(String s, Class<T> clazz) throws IOException {
        return objectMapper.readValue(s, clazz);
    }/*from www  .  j a  v  a2  s .c o  m*/
}

Related

  1. decode(String s)
  2. decode(String s)
  3. decode(String s)
  4. decode(String s)
  5. decode(String s)
  6. decode(String s, String charset1, String charset2)
  7. decode(String s, String enc, boolean plusToSpace)
  8. decode(String s, String encoding)
  9. decode(String str)