|
org.netbeans.modules.queries/1 1.10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.api.queries.FileEncodingQuery
public class FileEncodingQuery
The query is used for finding encoding of files. The query should be used when reading or writing files to use the correct encoding.
FileEncodingQueryImplementation| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Charset getEncoding(FileObject file)
file - to find an encoding for
public static Charset getDefaultEncoding()
public static void setDefaultEncoding(Charset encoding)
encoding - the new default encoding
|
org.netbeans.modules.queries/1 1.10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||