public abstract class XmlLikeFileType extends LanguageFileType
EMPTY_ARRAYEDITABLE_COPY_PREFIX| Modifier | Constructor and Description |
|---|---|
protected |
XmlLikeFileType(Language language) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.charset.Charset |
extractCharsetFromFileContent(Project project,
VirtualFile file,
java.lang.CharSequence content) |
java.lang.String |
getCharset(VirtualFile file,
byte [] content)
Returns the character set for the specified file.
|
extractCharsetFromFileContent, getLanguage, isBinary, isJVMDebuggingSupported, isReadOnly, isSecondaryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultExtension, getDescription, getIcon, getNamegetDisplayNameprotected XmlLikeFileType(Language language)
public java.lang.String getCharset(VirtualFile file, byte [] content)
FileTypegetCharset in interface FileTypegetCharset in class LanguageFileTypefile - The file for which the character set is requested.content - File content.Charset class.public java.nio.charset.Charset extractCharsetFromFileContent(Project project, VirtualFile file, java.lang.CharSequence content)
extractCharsetFromFileContent in class LanguageFileType