public abstract class XmlLikeFileType extends LanguageFileType
EMPTY_ARRAY
EDITABLE_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, isSecondary
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultExtension, getDescription, getIcon, getName
getDisplayName
protected XmlLikeFileType(Language language)
public java.lang.String getCharset(VirtualFile file, byte [] content)
FileType
getCharset
in interface FileType
getCharset
in class LanguageFileType
file
- 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