public class FileEncodingQuery
extends java.lang.Object
FileEncodingQueryImplementation| Modifier and Type | Method | Description |
|---|---|---|
static java.nio.charset.Charset |
getDefaultEncoding() |
Returns the encoding which should be used for newly created projects.
|
static java.nio.charset.Charset |
getEncoding(org.openide.filesystems.FileObject file) |
Returns encoding of given file.
|
static void |
setDefaultEncoding(java.nio.charset.Charset encoding) |
Sets the encoding which should be used for newly created projects.
|
public static java.nio.charset.Charset getEncoding(org.openide.filesystems.FileObject file)
file - to find an encoding forjava.lang.IllegalArgumentException - if file parameter is null.public static java.nio.charset.Charset getDefaultEncoding()
public static void setDefaultEncoding(java.nio.charset.Charset encoding)
encoding - the new default encodingjava.lang.IllegalArgumentException - if encoding parameter is null.Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.