Java XML Data Type Converter decode(String source)

Here you can find the source of decode(String source)

Description

decode

License

Apache License

Declaration

public static String decode(String source) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.nio.charset.Charset;
import javax.xml.bind.DatatypeConverter;

public class Main {
    public static String decode(String source) {
        return new String(DatatypeConverter.parseHexBinary(source), Charset.forName("UTF-8"));
    }//from   w  ww  .  ja  va  2  s .c  om
}

Related

  1. convertToPEM(PublicKey key)
  2. convertToTwoBytes(int numberToConvert)
  3. createBasicAuthenticationProperty(final String username, final String password)
  4. decode(final CharSequence _text)
  5. decode(String auth)
  6. decode(String string, boolean decode)
  7. decodeBasicAuth(String auth)
  8. decodeJavaOpts(String encodedJavaOpts)
  9. decodeToDoubleArray(String encoded)