Java UTF File Write getUTF8Writer(String file)

Here you can find the source of getUTF8Writer(String file)

Description

get UTF Writer

License

LGPL

Declaration

public static Writer getUTF8Writer(String file) throws FileNotFoundException 

Method Source Code


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

import java.io.*;
import java.nio.charset.StandardCharsets;

public class Main {
    public static Writer getUTF8Writer(String file) throws FileNotFoundException {
        return new PrintWriter(new OutputStreamWriter(new FileOutputStream(file), StandardCharsets.UTF_8));
    }/*from  ww w .j a v a2 s  .  co  m*/
}

Related

  1. asPrintWriterUTF8(OutputStream out)
  2. getBufferedUTF8Writer(File file)
  3. getUTF8FileAppendWriter(String filename)
  4. getUTF8FileWriter(File f)
  5. getUTF8Writer(OutputStream os)
  6. utf8Writer(File file)
  7. utf8Writer(final File f)
  8. writeFile(byte[] data, String outfile)
  9. writeFile(String fileName, ArrayList data, String outputFolder)