public class HtmlFileType extends XmlLikeFileType
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DOT_DEFAULT_EXTENSION |
static HtmlFileType |
INSTANCE |
EMPTY_ARRAY
EDITABLE_COPY_PREFIX
Modifier | Constructor and Description |
---|---|
protected |
HtmlFileType(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.
|
java.lang.String |
getDefaultExtension()
Returns the default extension for files of the type.
|
java.lang.String |
getDescription()
Returns the user-readable description of the file type.
|
javax.swing.Icon |
getIcon()
Returns the icon used for showing files of the type.
|
java.lang.String |
getName()
Returns the name of the file type.
|
extractCharsetFromFileContent, getLanguage, isBinary, isJVMDebuggingSupported, isReadOnly, isSecondary
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDisplayName
public static final java.lang.String DOT_DEFAULT_EXTENSION
public static final HtmlFileType INSTANCE
protected HtmlFileType(Language language)
public java.lang.String getName()
FileType
public java.lang.String getDescription()
FileType
public java.lang.String getDefaultExtension()
FileType
public javax.swing.Icon getIcon()
FileType
null
if no icon should be shown.public java.lang.String getCharset(VirtualFile file, byte [] content)
FileType
getCharset
in interface FileType
getCharset
in class XmlLikeFileType
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 XmlLikeFileType