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.Built on August 24 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.