Java Charset Create getCharset()

Here you can find the source of getCharset()

Description

Gets the charset used by the write method.

License

Open Source License

Return

Charset used by the read method, by default, UTF-8.

Declaration

public static Charset getCharset() 

Method Source Code

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

import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

public class Main {
    static Charset charset = StandardCharsets.UTF_8;

    /**// w  ww .j ava2  s.c  om
     * Gets the charset used by the write method.
     * @return Charset used by the read method, by default, UTF-8.
     */
    public static Charset getCharset() {
        return charset;
    }
}

Related

  1. getCanonicalCharset(String charset)
  2. getCanonicalCharset(String charset)
  3. getCharset()
  4. getCharset(int cpgid, int gcsgid)
  5. getCharset(int ibmCharacterSetId)
  6. getCharSet(String charset)
  7. getCharset(String charsetName)