Java String Decode by Charset getDecoder(String charset)

Here you can find the source of getDecoder(String charset)

Description

get Decoder

License

Open Source License

Declaration

public static CharsetDecoder getDecoder(String charset) 

Method Source Code


//package com.java2s;
import java.nio.charset.Charset;
import java.nio.charset.CharsetDecoder;

public class Main {
    public static CharsetDecoder getDecoder(String charset) {
        return Charset.forName(charset).newDecoder();
    }//from  w  ww. java2s . co  m
}

Related

  1. decodeURL(@Nullable String str, Charset charSet)
  2. decodeWithDefaultCharSet(String urlToDecode)
  3. getCharsetDecoder(String charsetName)
  4. getDecoder(Charset charset)
  5. getDecoder(Charset charset)
  6. pooledCharBuffer(int len, CharsetDecoder decoder)
  7. reportingDecoder(Charset cset)
  8. stringDecoder(String string, Charset charset)
  9. unicodeCodePoint2PercentHexString(int codePoint, String charsetName)