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