Java Charset Guess getCharsetFileWriter(File file, String charset)

Here you can find the source of getCharsetFileWriter(File file, String charset)

Description

get Charset File Writer

License

Apache License

Declaration

public static Writer getCharsetFileWriter(File file, String charset) throws IOException 

Method Source Code

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

import java.io.File;

import java.io.FileOutputStream;
import java.io.IOException;

import java.io.OutputStreamWriter;

import java.io.Writer;

public class Main {
    public static Writer getCharsetFileWriter(File file, String charset) throws IOException {
        return new OutputStreamWriter(new FileOutputStream(file), charset);
    }/*from w ww.  j  a v a  2 s . c  o  m*/
}

Related

  1. getCharset(File file)
  2. getCharset(Object resource)
  3. getCharsetFromBytes(byte abyte0[])
  4. getCharSetStr(String str, String oldCharSet, String newCharSet)
  5. getPYIndexChar(char strChinese, boolean bUpCase)