public class FileEncodingQuery extends Object
FileEncodingQueryImplementation
Modifier and Type | Method and Description |
---|---|
static Charset |
getDefaultEncoding()
Returns the encoding which should be used for newly created projects.
|
static Charset |
getEncoding(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(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.